diff options
-rw-r--r-- | lib/torrent.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js index 77cf898..e6ab569 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -1630,7 +1630,7 @@ class Torrent extends EventEmitter { _debug () { const args = [].slice.call(arguments) - args[0] = `[${this.client._debugId}] [${this._debugId}] ${args[0]}` + args[0] = `[${this.client ? this.client._debugId : 'No Client'}] [${this._debugId}] ${args[0]}` debug(...args) } |