Browse Source

stopTimeout

walkor 3 years ago
parent
commit
e7daf00a45
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Worker.php

+ 1 - 1
src/Worker.php

@@ -974,7 +974,7 @@ class Worker
                 // 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) {