diff --git a/discovery.php b/discovery.php index 93ca69a09f..a8e48c6495 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); } }