mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-13 21:00:43 +08:00
Merge ebb6a5fddb into c04fa542a3
This commit is contained in:
commit
0f1a67cc5d
@ -589,6 +589,13 @@ class _MipsClient(ABC):
|
||||
|
||||
def __mqtt_loop_handler(self) -> None:
|
||||
try:
|
||||
# If the main loop is closed, stop the internal loop immediately
|
||||
if self.main_loop.is_closed():
|
||||
self.log_debug(
|
||||
'The main loop is closed, stop the internal loop.')
|
||||
if not self._internal_loop.is_closed():
|
||||
self._internal_loop.stop()
|
||||
return
|
||||
if self._mqtt:
|
||||
self._mqtt.loop_read()
|
||||
if self._mqtt:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user