Skip to content
Snippets Groups Projects
Commit 98975bbc authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

Small behaviour changes in select close

parent e3b0c45b
No related branches found
No related tags found
No related merge requests found
......@@ -130,6 +130,9 @@ class HandlingLayer(object):
"""Handling layer is forcing the channel to be unregistered, as because
it has become closed or failed. This is called on already closed channel.
By the time this is called channel has been already removed from the
select layer.
@param channel: channel that has failed
@type channel: L{Channel}
"""
......@@ -303,9 +303,9 @@ class SelectHandlingLayer(HandlingLayer):
"""
Channel unregister + channel close
"""
self.unregister_channel(channel)
channel.on_closed() # this should close the channel
self.on_closed(channel)
self.unregister_channel(channel)
def select(self, timeout=5):
self.on_iteration()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment