diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-05-18 09:19:04 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-05-18 09:19:04 +0300 |
commit | 80f16baf555c5ad828df57e9ead1dc874ddf1a90 (patch) | |
tree | d2ccedf4bee440744816963a709de2479781ceff /lib/file-stream.js | |
parent | 4d3fbad3415db0e3bc2c3b8f2278c3025ee6bbb8 (diff) |
use 30s piece timeout like torrent-stream
Diffstat (limited to 'lib/file-stream.js')
-rw-r--r-- | lib/file-stream.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/file-stream.js b/lib/file-stream.js index afef5c0..5f00191 100644 --- a/lib/file-stream.js +++ b/lib/file-stream.js @@ -46,16 +46,16 @@ function FileStream (file, opts) { } FileStream.prototype._read = function () { - debug('_read') var self = this + debug('_read') if (self._reading) return self._reading = true self.notify() } FileStream.prototype.notify = function () { - debug('notify') var self = this + debug('notify') if (!self._reading || self._missing === 0) return if (!self._storage.bitfield.get(self._piece)) { |