Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2016-06-12 09:34:57 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-06-12 09:34:57 +0300
commit612c31a3faf068565104d5d370f6c07e94942989 (patch)
tree8dccc381b1e74c3dc498e3da2bd44ab2fdf3b7e3 /lib/tcp-pool.js
parent9cb3a73dcc79f77a4d95f02ed2b167e1cf65c0c2 (diff)
Fixes for PR #834
Diffstat (limited to 'lib/tcp-pool.js')
-rw-r--r--lib/tcp-pool.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/tcp-pool.js b/lib/tcp-pool.js
index b478810..cdf895d 100644
--- a/lib/tcp-pool.js
+++ b/lib/tcp-pool.js
@@ -119,7 +119,9 @@ TCPPool.prototype._onConnection = function (conn) {
function cleanupPending () {
conn.removeListener('close', cleanupPending)
wire.removeListener('handshake', onHandshake)
- if(self._pendingConns) arrayRemove(self._pendingConns, self._pendingConns.indexOf(conn))
+ if (self._pendingConns) {
+ arrayRemove(self._pendingConns, self._pendingConns.indexOf(conn))
+ }
}
}