Merge pull request #1667 from nanoric/fix_docstring

[Mod] 修正了一下websocket_client的stop和join的注释
This commit is contained in:
vn.py 2019-05-06 15:52:26 +08:00 committed by GitHub
commit 7a4c3ba3d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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