Skip to content

Commit aea889b

Browse files
author
Mike Stegeman
committed
Stop receive thread on unload.
1 parent ff92513 commit aea889b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gateway_addon/adapter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,4 @@ def cancel_remove_thing(self, device_id):
157157
def unload(self):
158158
"""Perform any necessary cleanup before adapter is shut down."""
159159
print('Adapter:', self.name, 'unloaded')
160+
self.manager_proxy.running = False

0 commit comments

Comments
 (0)