Skip to content

Commit 21bf8b3

Browse files
authored
Fixes call terminate() on null when worker is not booted (#445)
1 parent cfc8a70 commit 21bf8b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/roadrunner-worker

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,6 @@ while ($psr7Request = $psr7Client->waitRequest()) {
5858
$worker->handle($request, $context);
5959
}
6060

61-
$worker->terminate();
61+
if (! is_null($worker)) {
62+
$worker->terminate();
63+
}

0 commit comments

Comments
 (0)