From 4b6e2a2ca302264c1446d8d572d879f51d999f8a Mon Sep 17 00:00:00 2001 From: akumlehn Date: Tue, 3 Mar 2020 22:22:29 +0100 Subject: [PATCH] call super.disconnect instead of connect (ensures event network.disconnected broadcast) (#22) --- Hologram/Network/Cellular.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hologram/Network/Cellular.py b/Hologram/Network/Cellular.py index 84d36c8..1007a2d 100644 --- a/Hologram/Network/Cellular.py +++ b/Hologram/Network/Cellular.py @@ -90,7 +90,7 @@ def disconnect(self): self.logger.info('Successfully disconnected from cell network') self._connection_status = CLOUD_DISCONNECTED self.event.broadcast('cellular.disconnected') - super().connect() + super().disconnect() else: self.logger.info('Failed to disconnect from cell network')