Reset the send/receive buffers and the http parser on disconnects.
This commit is contained in:
parent
b04c952107
commit
2741a7807d
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue