Skip to content

Commit

Permalink
stopTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Apr 12, 2022
1 parent 74a1a34 commit e7daf00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ protected static function parseCommand()
// Send stop signal to master process.
$master_pid && \posix_kill($master_pid, $sig);
// Timeout.
$timeout = 5;
$timeout = static::$stopTimeout + 3;
$start_time = \time();
// Check master process is still alive?
while (1) {
Expand Down

0 comments on commit e7daf00

Please sign in to comment.