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

fix: move emitters to last thing in the method #218

Merged
merged 2 commits into from
Apr 6, 2017
Merged

Conversation

daviddias
Copy link
Member

No description provided.

muxedConn.on('close', () => {
delete swarm.muxedConns[b58Str]
peerInfo.disconnect()
peerInfo = swarm._peerBook.put(peerInfo)
swarm.emit('peer-mux-closed', peerInfo)
})

swarm.emit('peer-mux-established', peerInfo)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets use setImmediate as discussed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@daviddias daviddias merged commit a5b1b63 into master Apr 6, 2017
@daviddias daviddias deleted the feat/dht branch April 6, 2017 19:39
dryajov pushed a commit that referenced this pull request Apr 7, 2017
* fix: move emitters to last thing in the method

* fix: setImmediate everything
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants