diff --git a/vnpy/api/websocket/websocket_client.py b/vnpy/api/websocket/websocket_client.py index 6c073b28..84596a34 100644 --- a/vnpy/api/websocket/websocket_client.py +++ b/vnpy/api/websocket/websocket_client.py @@ -88,8 +88,6 @@ class WebsocketClient(object): def stop(self): """ Stop the client. - - This function cannot be called from worker thread or callback function. """ self._active = False self._disconnect() @@ -97,6 +95,8 @@ class WebsocketClient(object): def join(self): """ Wait till all threads finish. + + This function cannot be called from worker thread or callback function. """ self._ping_thread.join() self._worker_thread.join()