Commit c3e988ad authored by Antoine Millet's avatar Antoine Millet

Fixed bug with poll unregister.

parent 3b25b83c
...@@ -43,7 +43,10 @@ class SimpleRpcServer(ConnectionManager): ...@@ -43,7 +43,10 @@ class SimpleRpcServer(ConnectionManager):
def shutdown_client(self, fd): def shutdown_client(self, fd):
conn = self._clients.get(fd) conn = self._clients.get(fd)
self._poll.unregister(fd) try:
except IOError:
if fd is not None: if fd is not None:
try: try:
del self._clients[fd] 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