diff --git a/lib/torrent.js b/lib/torrent.js index 432caa1b..fb3656c5 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)