Skip to content

Commit

Permalink
fix handleSignal implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Feb 14, 2024
1 parent 6fe0e9b commit 9ca0996
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Servers/Reverb/Console/Commands/StartServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,12 @@ public function getSubscribedSignals(): array
/**
* Handle the signals sent to the server.
*/
public function handleSignal(int $signal): void
public function handleSignal(int $signal, int|false $previousExitCode = 0): int|false
{
$this->components->info('Gracefully terminating connections.');

$this->gracefullyDisconnect();

return $previousExitCode;
}
}

0 comments on commit 9ca0996

Please sign in to comment.