From efc6042d17af57189cf37ef4f1ecfee05cfdf205 Mon Sep 17 00:00:00 2001 From: nanoric Date: Mon, 6 May 2019 00:41:40 -0400 Subject: [PATCH] =?UTF-8?q?[Mod]=20=E4=BF=AE=E6=AD=A3=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E4=B8=8Bwebsocket=5Fclient=E7=9A=84stop=E5=92=8Cjoin=E7=9A=84?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/api/websocket/websocket_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()