give discovery it's own lock

This commit is contained in:
Clint Armstrong
2015-07-22 07:37:02 -04:00
parent 617e695b20
commit 9039dbb425

View File

@@ -106,7 +106,7 @@ 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'])) {
if (dbGetLock('discovering.' . $device['device_id'])) {
discover_device($device, $options);
}
}