diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2016-04-01 11:26:42 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2016-04-01 11:26:42 +0300 |
commit | e7274b4134468de8505ce90d5210f5c65ad4a07c (patch) | |
tree | 067b23611e92d5310a82cdf09ced6bed280f4e0d /index.js | |
parent | 715dafe597efb0ae9b332a6681f8934ba380cbcd (diff) |
Ignore warning when there are > 10 torrents in the client
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -87,6 +87,10 @@ function WebTorrent (opts) { self.emit('error', err) self.destroy() }) + + // Ignore warning when there are > 10 torrents in the client + self.dht.setMaxListeners(0) + self.dht.listen(opts.dhtPort) } else { self.dht = false |