Commit c3e988ad authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed bug with poll unregister.

parent 3b25b83c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -43,7 +43,10 @@ class SimpleRpcServer(ConnectionManager):

    def shutdown_client(self, fd):
        conn = self._clients.get(fd)
        try:
            self._poll.unregister(fd)
        except IOError:
            pass
        if fd is not None:
            try:
                del self._clients[fd]