1
1
Fork 0

Bugfix: Poller entries had been executed multiple times

This commit is contained in:
Michael 2017-06-21 03:49:05 +00:00
commit 7097673fa1
3 changed files with 8 additions and 5 deletions

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;
}