Closed Flowelfox closed 5 years ago
This is correct, I'll add this to the stop method so that is properly closes the running reactor.
Also I'm working on a version for python 3.7 and up that uses asyncio and websockets that is much cleaner and uses await
.
I have now added the method stop()
to version 1.1.2
:
https://bitfinex.readthedocs.io/en/latest/websocket.html#bitfinex.websockets.client.WssClient.stop
It will try to close all connections and will finally stop the reactor and properly exit the program.
I created wssclient and subscribed to candles with different symbols.
After calling ws.close() my program can't finish it work because 'PoolThread-twisted.internet.reactor-0' does not stops. For proper work i must stop this thread by myself calling
Someone else has this issue?