Skip to content

Commit

Permalink
call super.disconnect instead of connect (ensures event network.disco…
Browse files Browse the repository at this point in the history
…nnected broadcast) (#22)
  • Loading branch information
akumlehn authored and DomAmato committed Mar 24, 2020
1 parent cdddf6c commit 4b6e2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hologram/Network/Cellular.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 4b6e2a2

Please sign in to comment.