mirror of
https://github.com/status-im/react-native-tcp.git
synced 2025-02-17 04:46:32 +00:00
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) {
|
Sockets.write(this._id, str, function(err) {
|
||||||
if (self._timeout) {
|
if (self._timeout) {
|
||||||
self._activeTimer(this._timeout.msecs);
|
self._activeTimer(self._timeout.msecs);
|
||||||
}
|
}
|
||||||
|
|
||||||
err = normalizeError(err);
|
err = normalizeError(err);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user