Skip to content

Commit

Permalink
Reset exception variable in main loop (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk authored Jul 22, 2024
1 parent 9e5e86f commit f751ce3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public function serve(WorkerInterface $worker = null, callable $finalize = null)
$worker ??= Worker::create();

while (true) {
$e = null;
$request = $worker->waitPayload();

if ($request === null) {
Expand Down

0 comments on commit f751ce3

Please sign in to comment.