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-05-18 08:34:20 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-05-18 08:34:20 +0300
commit80e3c928752deddbba55b3c53c7f544834008026 (patch)
tree7ff64fef2dae462b2917ea781cc9322dbca8193a /lib/file-stream.js
parent4309d70fb2473e0097bed3b0b7525579de4a52a4 (diff)
deprioritize selection after filestream.destroy()
cc @jhiesey
Diffstat (limited to 'lib/file-stream.js')
-rw-r--r--lib/file-stream.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/file-stream.js b/lib/file-stream.js
index 4d34dca..afef5c0 100644
--- a/lib/file-stream.js
+++ b/lib/file-stream.js
@@ -117,4 +117,5 @@ FileStream.prototype.destroy = function () {
var self = this
if (self.destroyed) return
self.destroyed = true
+ self._storage.emit('deselect', self.startPiece, self.endPiece, true)
}