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>2015-01-29 03:55:56 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-01-29 03:55:56 +0300
commit96939e9f233e4db13583fae498e32cebf6fd29fd (patch)
tree66188ada2922e5922b4e998c4ecde8dbf8496cb0 /lib/torrent.js
parente33c3d8542fe509c91e64e79f2cd0084d08332b4 (diff)
more style fixes
Diffstat (limited to 'lib/torrent.js')
-rw-r--r--lib/torrent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index 6b43f8b..47b805e 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -558,7 +558,7 @@ Torrent.prototype._onStorage = function () {
self.select(0, self.storage.pieces.length - 1, false)
self._rechokeIntervalId = setInterval(self._rechoke.bind(self), RECHOKE_INTERVAL)
- self._rechokeIntervalId.unref && self._rechokeIntervalId.unref()
+ if (self._rechokeIntervalId.unref) self._rechokeIntervalId.unref()
process.nextTick(function () {
self.ready = true