Release MySQL locks when they are not used anymore

This commit is contained in:
f0o
2015-09-01 11:10:56 +01:00
parent 04bb652e06
commit b0a302bf77
2 changed files with 2 additions and 0 deletions

View File

@@ -114,6 +114,7 @@ foreach (dbFetch($query) as $device) {
poll_device($device, $options);
RunRules($device['device_id']);
echo "\r\n";
dbReleaseLock('polling.' . $device['device_id']);
}
$polled_devices++;
}