Skip to content

Commit

Permalink
fix process signal method
Browse files Browse the repository at this point in the history
  • Loading branch information
TorstenDittmann committed Jul 9, 2021
1 parent a51a2f4 commit 9b74161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebSocket/Adapter/Swoole.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function onStart(callable $callback): self
$this->server->on('start', function () use ($callback) {
call_user_func($callback);

Process::signal(2, function () {
Process::signal('2', function () {
$this->shutdown();
});
});
Expand Down

0 comments on commit 9b74161

Please sign in to comment.