mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 16:26:55 +02:00
release lock for 1 device
This commit is contained in:
@@ -268,6 +268,10 @@ while True:
|
||||
t = threading.Thread(target=poll_worker, args=[device_id, action])
|
||||
t.start()
|
||||
|
||||
# If there is only one device, release the queue lock, because it won't release automatically.
|
||||
if len(devices) == 1:
|
||||
releaseLock('queued.{}'.format(device_id))
|
||||
|
||||
# If we made it this far, break out of the loop and query again.
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user