binance-connector-python
binance-connector-python copied to clipboard
Trivial test program hangs
Before submitting a new issue, please check if a similar issue has already been filed.
Trivial websocket program hangs
If only a websocket instance is created and start()ed, it will hang if stop() is called without executing a subscription (for instance).
Expected behaviour
A websocket program should terminate gracefully and immediately after calling stop()
Actual behaviour
Program does not terminate.
Steps to reproduce
from binance.websocket.spot.websocket_client import SpotWebsocketClient as WebsocketClient
ws_client = WebsocketClient() ws_client.start() ws_client.stop()
Environment
Default system and setup