From e605438d33e6eb4550fcec376c5d3bfcece4383d Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 8 Dec 2018 12:37:39 +0000 Subject: [PATCH] Kill connections when closing publisher --- ipc_unix/pubsub.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ipc_unix/pubsub.py b/ipc_unix/pubsub.py index 1bae3cf..8dc776c 100644 --- a/ipc_unix/pubsub.py +++ b/ipc_unix/pubsub.py @@ -44,6 +44,8 @@ class Publisher: def close(self): self.master_socket.close() + for connection in self.connections: + connection.close() self.connections.clear() def accept_new_connection(self):