It looks like you're new here. If you want to get involved, click one of these buttons!
kws_list[ws_idx].stop()
File "/home/kk/anaconda3/envs/kite/lib/python3.8/site-packages/twisted/internet/base.py", line 708, in stop
raise error.ReactorNotRunning("Can't stop reactor that isn't running.")
twisted.internet.error.ReactorNotRunning: Can't stop reactor that isn't running.
Please let me know a clean way to close these connections . I am using kws_l[ws_idx].connect(threaded=<b class="Bold"><b class="Bold">True</b></b>)
I am running multiple websockets in threaded=True mode. This reactor not running error is only seen when I try to close all (multiple) websockets . The issue is NOT seen when i use single websocket.
This is my code to stop connections. The issue is also not seen when i add time.sleep or add break (of course).
So it appears to me that, closing 1 WS closes rest all connections ? is this true ?