diff options
author | XiaoJun <magic.xiao@admaster.com.cn> | 2017-09-08 10:49:41 +0300 |
---|---|---|
committer | XiaoJun <magic.xiao@admaster.com.cn> | 2017-09-08 10:49:41 +0300 |
commit | edac8ac9b569cae8a32b2ca837941fe8f05c4f78 (patch) | |
tree | 95efc4cf59e42353d20b3956929f9341f577e2a9 /lib/torrent.js | |
parent | 74c791ca6cdccc5fda7c1accb2f8e231e6b22267 (diff) |
fix debug function undefined bug
Diffstat (limited to 'lib/torrent.js')
-rw-r--r-- | lib/torrent.js | 1 |
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) |