Skip to content

Commit

Permalink
initialize pid outside try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
manelgavalda committed Sep 15, 2023
1 parent 961ae03 commit 68880b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Spinner.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public function spin(Closure $callback): mixed
exit();
});

$pid = 0;

try {
$this->render();

Expand Down

0 comments on commit 68880b8

Please sign in to comment.