Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/torrent.js2
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)
}