Commit c3e988ad authored by Antoine Millet's avatar Antoine Millet

Fixed bug with poll unregister.

parent 3b25b83c
......@@ -43,7 +43,10 @@ class SimpleRpcServer(ConnectionManager):
def shutdown_client(self, fd):
conn = self._clients.get(fd)
self._poll.unregister(fd)
try:
self._poll.unregister(fd)
except IOError:
pass
if fd is not None:
try:
del self._clients[fd]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment