Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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():
......
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