Skip to content
Snippets Groups Projects
Commit a6fd1d82 authored by Antoine Millet's avatar Antoine Millet
Browse files

Added a shutdown_client method on SimpleRpcServer manager to disconnect a...

Added a shutdown_client method on SimpleRpcServer manager to disconnect a client before to calling the disconnection callback.
parent dd00e357
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,9 @@ class SimpleRpcServer(ConnectionManager):
connection.shutdown(self._on_disconnect)
self._listening_sock.close()
def shutdown_client(self, connection):
connection.shutdown(callback=self._on_disconnect)
def all_connections(self):
return set(self._clients.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