Make sure loop_stop() would not be stuck

Signed-off-by: NChang Yu-heng <mr.changyuheng@gmail.com>
上级 ed255983
......@@ -1244,6 +1244,9 @@ class Client(object):
run = True
while run:
if self._thread_terminate is True:
break
if self._state == mqtt_cs_connect_async:
try:
self.reconnect()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册