Skip to content
Snippets Groups Projects
Commit c3e988ad authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed bug with poll unregister.

parent 3b25b83c
No related branches found
No related tags found
No related merge requests found
......@@ -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]
......
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