Merge pull request #1214 from nanoric/fix_websocket_ping_no_reconnect

[Fix] 修复一个BUG:websocket在发送ping包时出错将不会重连,导致后续每ping一次报一次错。
This commit is contained in:
vn.py 2018-11-07 10:52:40 +08:00 committed by GitHub
commit f02d5a7ebe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,6 +191,7 @@ class WebsocketClient(object):
et, ev, tb = sys.exc_info()
# todo: just log this, notifying user is not necessary
self.onError(et, ev, tb)
self._reconnect()
for i in range(60):
if not self._active:
break