Bugfix: Poller entries had been executed multiple times

This commit is contained in:
Michael
2017-06-21 03:49:05 +00:00
parent 13c8750c27
commit 7097673fa1
3 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -678,7 +678,7 @@ function poller_worker_process() {
$poller_db_duration += (microtime(true) - $stamp);
if ($found) {
$r = q("SELECT * FROM `workerqueue` WHERE `pid` = %d", intval(getmypid()));
$r = q("SELECT * FROM `workerqueue` WHERE `pid` = %d AND NOT `done`", intval(getmypid()));
}
return $r;
}