bug fix: receive while callback added
这个提交包含在:
父节点
1921bc619a
当前提交
79ac04ffdb
@ -83,7 +83,7 @@ class mqtt_client(object):
|
||||
|
||||
def __receive__(self, client, userdata, message):
|
||||
logger.debug("Received message with topic %s and payload %s", message.topic, str(message.payload))
|
||||
for topic in self.__callbacks__:
|
||||
for topic in self.__callbacks__.copy():
|
||||
if topic.endswith('#'):
|
||||
if message.topic.startswith(topic[:-1]):
|
||||
self.__callbacks__[topic](client, userdata, message)
|
||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户