Skip to content

Conversation

@jiahuang
Copy link
Contributor

still need to figure out a good way to reproduce this since PC colony will never run into socket closing issues.

Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't need to wrapped in a callback. Since no other code can reach closeSocket, just close over calls to this.removeAllListeners(); and bind to this (which eliminates the junk self alias binding as well).

@rwaldron
Copy link
Contributor

Tests?

@tcr tcr changed the title [NRY] remove all listeners after error emitting [WIP] remove all listeners after error emitting Oct 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants