Kill connections when closing publisher

This commit is contained in:
Jake Howard 2018-12-08 12:37:39 +00:00
parent 07ed45780a
commit e605438d33
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -44,6 +44,8 @@ class Publisher:
def close(self): def close(self):
self.master_socket.close() self.master_socket.close()
for connection in self.connections:
connection.close()
self.connections.clear() self.connections.clear()
def accept_new_connection(self): def accept_new_connection(self):