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
path: root/lib
diff options
context:
space:
mode:
authorDiego Rodríguez Baquero <diegorbaquero@gmail.com>2017-09-10 00:42:09 +0300
committerGitHub <noreply@github.com>2017-09-10 00:42:09 +0300
commit598d944c07b190e7e7e976b1b44d857cf0b2c14d (patch)
tree9baacd784c9a5a276c4db437f0ac5ec0ae2c2157 /lib
parent1f8000452c3cb9fa1dcc9e580f4a81ad8b6e029d (diff)
parentedac8ac9b569cae8a32b2ca837941fe8f05c4f78 (diff)
Merge pull request #1183 from magicxiao/fix_debug_function_undefined_bug
fix debug function undefined bug
Diffstat (limited to 'lib')
-rw-r--r--lib/torrent.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index 432caa1..fb3656c 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -1647,6 +1647,7 @@ Torrent.prototype.resume = function () {
}
Torrent.prototype._debug = function () {
+ if (this.destroyed) return
var args = [].slice.call(arguments)
args[0] = '[' + this.client._debugId + '] [' + this._debugId + '] ' + args[0]
debug.apply(null, args)