matrix: Switch to the nio http client.
This commit is contained in:
parent
fc4c879e0d
commit
1ff0818d46
2 changed files with 3 additions and 3 deletions
4
main.py
4
main.py
|
@ -386,8 +386,8 @@ def room_close_cb(data, buffer):
|
||||||
def matrix_unload_cb():
|
def matrix_unload_cb():
|
||||||
matrix_config_free(matrix.globals.CONFIG)
|
matrix_config_free(matrix.globals.CONFIG)
|
||||||
|
|
||||||
for server in SERVERS.values():
|
# for server in SERVERS.values():
|
||||||
server.store_olm()
|
# server.store_olm()
|
||||||
|
|
||||||
W.prnt("", "unloading")
|
W.prnt("", "unloading")
|
||||||
return W.WEECHAT_RC_OK
|
return W.WEECHAT_RC_OK
|
||||||
|
|
|
@ -329,7 +329,7 @@ class MatrixServer:
|
||||||
|
|
||||||
self.send_buffer = b""
|
self.send_buffer = b""
|
||||||
self.current_message = None
|
self.current_message = None
|
||||||
self.reset_parser()
|
self.client.disconnect()
|
||||||
|
|
||||||
self.lag = 0
|
self.lag = 0
|
||||||
W.bar_item_update("lag")
|
W.bar_item_update("lag")
|
||||||
|
|
Loading…
Add table
Reference in a new issue