Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.

feat: increase maxListeners to Infinity #226

Merged
merged 2 commits into from
Aug 25, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ function Swarm (peerInfo, peerBook) {
this._peerInfo = peerInfo
this._peerBook = peerBook

this.setMaxListeners(Infinity)

// transports --
// { key: transport }; e.g { tcp: <tcp> }
this.transports = {}
Expand Down