Reset the send/receive buffers and the http parser on disconnects.

This commit is contained in:
poljar (Damir Jelić) 2018-02-20 10:12:14 +01:00
parent b04c952107
commit 2741a7807d

View file

@ -337,6 +337,10 @@ class MatrixServer:
self.send_queue.clear()
self.receive_queue.clear()
self.send_buffer = b""
self.current_message = None
self.reset_parser()
self.lag = 0
W.bar_item_update("lag")
self.reconnect_delay = 0