Clear the receive queue if we disconnect.
This commit is contained in:
parent
484d91b166
commit
d9ba22944b
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ def disconnect(server):
|
|||
server.fd_hook = None
|
||||
server.socket = None
|
||||
server.connected = False
|
||||
server.receive_queue.clear()
|
||||
|
||||
server_buffer_prnt(server, "Disconnected")
|
||||
|
||||
|
|
Loading…
Reference in a new issue