Enhance the proper stopping. Still [Errno 9] Bad file descriptor happen sometimes

This commit is contained in:
Sébastien Lucas
2017-05-31 22:25:30 +02:00
parent 200703f37e
commit 9806caca85
2 changed files with 9 additions and 1 deletions
+1
View File
@@ -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