binance-connector-python icon indicating copy to clipboard operation
binance-connector-python copied to clipboard

Trivial test program hangs

Open chill1n opened this issue 3 years ago • 1 comments

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

chill1n avatar Apr 08 '22 22:04 chill1n

Please have a try on the latest v3.

2pd avatar Feb 16 '23 05:02 2pd

I'm closing this issue as we published a brand new modularised version of the Python connector. Feel free to start using it and open a new issue if you encounter any problems.

alplabin avatar Jul 18 '25 13:07 alplabin