Skip to content

Commit

Permalink
[fix] client close
Browse files Browse the repository at this point in the history
  • Loading branch information
telanflow committed Nov 5, 2019
1 parent edc87d3 commit 32fddf0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Server/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ public function signalHandler($signal)
case SIGUSR2:
case SIGTERM:
$this->exit = true;
$this->client->close(true);
if ($this->client->isConnected()) {
$this->client->close(true);
}
file_put_contents(Configure::getPosFile(), $pidFileContent);
exit(0);
}
Expand Down

0 comments on commit 32fddf0

Please sign in to comment.