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:
authorXiaoJun <magic.xiao@admaster.com.cn>2017-09-08 10:49:41 +0300
committerXiaoJun <magic.xiao@admaster.com.cn>2017-09-08 10:49:41 +0300
commitedac8ac9b569cae8a32b2ca837941fe8f05c4f78 (patch)
tree95efc4cf59e42353d20b3956929f9341f577e2a9 /lib/torrent.js
parent74c791ca6cdccc5fda7c1accb2f8e231e6b22267 (diff)
fix debug function undefined bug
Diffstat (limited to 'lib/torrent.js')
-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)