[Mod] 修正了一下websocket_client的stop和join的注释

This commit is contained in:
nanoric 2019-05-06 00:41:40 -04:00
parent 769e70290d
commit efc6042d17

View File

@ -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()