Bugfix: Poller entries had been executed multiple times
This commit is contained in:
parent
13c8750c27
commit
7097673fa1
3 changed files with 8 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue