diff options
author | Diego RodrÃguez Baquero <diegorbaquero@gmail.com> | 2017-09-10 00:42:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-10 00:42:09 +0300 |
commit | 598d944c07b190e7e7e976b1b44d857cf0b2c14d (patch) | |
tree | 9baacd784c9a5a276c4db437f0ac5ec0ae2c2157 /lib | |
parent | 1f8000452c3cb9fa1dcc9e580f4a81ad8b6e029d (diff) | |
parent | edac8ac9b569cae8a32b2ca837941fe8f05c4f78 (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.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) |