Commit ca2b77e5 authored by Antoine Millet's avatar Antoine Millet

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

parent 2540b994
......@@ -350,7 +350,10 @@ class RpcConnection(object):
:type callback: :class:`str` or callable or None
'''
self._sock.close()
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():
......
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