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

Trivial test program hangs

Open chill1n opened this issue 2 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