Skip to content

Conversation

@minrk
Copy link
Member

@minrk minrk commented Nov 10, 2017

PCs are always run with the current eventloop, which is what the loop we have been passing explicitly already is.

Also fixed a case where we were closing ZMQStream and socket separately,
which may have been safe in the past, but can raise errors due to trying to unregister a closed socket with zmq.

PCs are always run with the current eventloop,
which is what the explicitly passed loop always is for us already
closing stream closes the socket
@minrk minrk added this to the 5.3 milestone Nov 10, 2017
for channel, stream in self.channels.items():
if stream is not None and not stream.closed():
stream.on_recv(None)
# close the socket directly, don't wait for the stream
Copy link
Member

Choose a reason for hiding this comment

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

This comment should probably be removed as misleading. And the assignment below is now unnecessary.

Copy link
Member Author

@minrk minrk Nov 13, 2017

Choose a reason for hiding this comment

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

Good catch, fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants