Correct bug with 2 handlers being called
This commit is contained in:
parent
89bea07ae6
commit
82b7704cf3
1 changed files with 1 additions and 1 deletions
2
mmcli.py
2
mmcli.py
|
@ -223,7 +223,7 @@ def cat(mm_api: mattermost.MMApi, cmdline_args):
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
mmws.ws_handler = simple_websocket_callback
|
mmws.ws_handler = simple_websocket_callback
|
||||||
simple_websocket_callback(mmws, event_data)
|
simple_websocket_callback(mmws, event_data)
|
||||||
|
|
||||||
ws_url = http_to_ws(mm_api._url) + "/v4/websocket"
|
ws_url = http_to_ws(mm_api._url) + "/v4/websocket"
|
||||||
mmws = MMws(initial_websocket_callback, mm_api.access_token, ws_url)
|
mmws = MMws(initial_websocket_callback, mm_api.access_token, ws_url)
|
||||||
|
|
Loading…
Reference in a new issue