Skip to content

Commit

Permalink
Merge pull request #1183 from magicxiao/fix_debug_function_undefined_bug
Browse files Browse the repository at this point in the history
fix debug function undefined bug
  • Loading branch information
DiegoRBaquero committed Sep 9, 2017
2 parents 1f80004 + edac8ac commit 598d944
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/torrent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 598d944

Please sign in to comment.