Skip to content

Commit

Permalink
Continue loop if fd doesn't exist (#737)
Browse files Browse the repository at this point in the history
Co-authored-by: mortexa <[email protected]>
  • Loading branch information
smortexa and mortexa authored Aug 25, 2023
1 parent 212ed3c commit 61f4edb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ public function __invoke()
if ((time() - $row['time']) > $this->maxExecutionTime) {
$this->timerTable->del($workerId);

if ($this->server instanceof Server && ! $this->server->exists($row['fd'])) {
continue;
}

$this->extension->dispatchProcessSignal($row['worker_pid'], SIGKILL);

if ($this->server instanceof Server) {
Expand Down

0 comments on commit 61f4edb

Please sign in to comment.