提交 fdec2a9f 编写于 作者: R Roger Light

Merge pull request #41 from mattvenn/develop

allow ^C to interrupt client loop
......@@ -11,6 +11,7 @@ v1.2 - 2016-xx-xx
unresolvable.
- Add paho.mqtt.subscribe module, with simple() and callback() helper
functions.
- Allow ^C to interrupt client loop.
v1.1 - 2015-01-30
......
......@@ -863,6 +863,9 @@ class Client(object):
# Can occur if we just reconnected but rlist/wlist contain a -1 for
# some reason.
return MQTT_ERR_CONN_LOST
except KeyboardInterrupt:
# Allow ^C to interrupt
raise
except:
return MQTT_ERR_UNKNOWN
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册