Skip to content
Snippets Groups Projects
Commit c3fc1935 authored by Paulus Schoutsen's avatar Paulus Schoutsen
Browse files

Fix device tracker waiting forever when platform gets stuck

parent ec557f8d
No related branches found
No related tags found
No related merge requests found
......@@ -157,7 +157,8 @@ class DeviceTracker(object):
def update_devices(self, now):
""" Update device states based on the found devices. """
self.lock.acquire()
if not self.lock.acquire(False):
return
found_devices = set(dev.upper() for dev in
self.device_scanner.scan_devices())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment