From 9039dbb425555c48d9ce4ac5927e65f97ae7c803 Mon Sep 17 00:00:00 2001 From: Clint Armstrong Date: Wed, 22 Jul 2015 07:37:02 -0400 Subject: [PATCH] give discovery it's own lock --- discovery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discovery.php b/discovery.php index 93ca69a09..a8e48c649 100755 --- a/discovery.php +++ b/discovery.php @@ -106,8 +106,8 @@ if ($config['distributed_poller'] === true) { } foreach (dbFetch("SELECT * FROM `devices` WHERE status = 1 AND disabled = 0 $where ORDER BY device_id DESC") as $device) { - if (dbGetLock('polling.' . $device['device_id'])) { - discover_device($device, $options); + if (dbGetLock('discovering.' . $device['device_id'])) { + discover_device($device, $options); } }