Merge pull request #53 from jsdario/patch-1
Replace `this` by `self` in a scoped reference
This commit is contained in:
commit
59674c4c7b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue