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

Fixed bug with RpcConnect shutdown method when socket is already closed.

parent 2540b994
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -350,7 +350,10 @@ class RpcConnection(object):
        :type callback: :class:`str` or callable or None
        '''

        try:
            self._sock.close()
        except socket.error as err:
            logging.warning('Error while socket close: %s.', err)

        # Release all running calls from this connection:
        for call in self._calls.values():