Skip to content

Commit

Permalink
Merge pull request #53 from jsdario/patch-1
Browse files Browse the repository at this point in the history
Replace `this` by `self` in a scoped reference
  • Loading branch information
aprock authored Jul 4, 2017
2 parents 75afd35 + fc66549 commit 59674c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TcpSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ TcpSocket.prototype._write = function(buffer: any, encoding: ?String, callback:

Sockets.write(this._id, str, function(err) {
if (self._timeout) {
self._activeTimer(this._timeout.msecs);
self._activeTimer(self._timeout.msecs);
}

err = normalizeError(err);
Expand Down

0 comments on commit 59674c4

Please sign in to comment.