Clear the receive queue if we disconnect.

This commit is contained in:
poljar (Damir Jelić) 2018-01-31 13:56:16 +01:00
parent 484d91b166
commit d9ba22944b

View file

@ -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")