Remote instance closes event forwarding on shutdown

This commit is contained in:
Paulus Schoutsen committed 2014-11-28 20:37:23 -08:00
1 parent cfae4c667a
commit 63f8f2ee7f
2 files changed
+5 -1

No files matched your search

+3
View File
@@ -142,6 +142,9 @@ class HomeAssistant(ha.HomeAssistant):
self.bus.fire(ha.EVENT_HOMEASSISTANT_STOP,
origin=ha.EventOrigin.remote)
# Disconnect master event forwarding
disconnect_remote_events(self.remote_api, self.local_api)
# Wait till all responses to homeassistant_stop are done
self._pool.block_till_done()