Correct bug with 2 handlers being called

This commit is contained in:
Midgard 2021-06-30 13:22:04 +02:00
parent 89bea07ae6
commit 82b7704cf3
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -223,7 +223,7 @@ def cat(mm_api: mattermost.MMApi, cmdline_args):
return
else:
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"
mmws = MMws(initial_websocket_callback, mm_api.access_token, ws_url)