Skip to content

Commit e5a3f10

Browse files
committed
default timeout set to 0, for true non-blocking mode
1 parent feb8c2e commit e5a3f10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ def reconnect(self, resub_topics=True):
834834
feed = subscribed_topics.pop()
835835
self.subscribe(feed)
836836

837-
def loop(self, timeout=1):
837+
def loop(self, timeout=0):
838838
"""Non-blocking message loop. Use this method to
839839
check incoming subscription messages.
840840
Returns response codes of any messages received.

0 commit comments

Comments
 (0)