Enhance the proper stopping. Still [Errno 9] Bad file descriptor happen sometimes
This commit is contained in:
@@ -57,6 +57,7 @@ class Mqtt:
|
||||
|
||||
def disconnect(self):
|
||||
self._client.disconnect()
|
||||
self._queue.put(None)
|
||||
|
||||
def subscribe(self, model="+", name="+", prop="+", command=None):
|
||||
topic = self.prefix + "/" + model + "/" + name + "/" + prop
|
||||
|
||||
Reference in New Issue
Block a user