Skip to content
This repository was archived by the owner on May 8, 2020. It is now read-only.

Commit 847cc05

Browse files
authored
remove address
1 parent 0a0f2bf commit 847cc05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def remove_socket(self, sock):
3030
address = self.socketaddresses[sock]
3131
self.client_disconnect_func(sock, self.host, self.port, address)
3232
self.connected_sockets.remove(sock)
33+
self.socketaddresses.remove(sock)
3334

3435
def serve_forever(self):
3536
self.looping = True
@@ -87,4 +88,4 @@ def quit(self):
8788
self.quit_func(self.host, self.port)
8889

8990
def stop(self):
90-
self.looping = False
91+
self.looping = False

0 commit comments

Comments
 (0)