This commit is contained in:
2023-04-01 23:56:30 +08:00
parent 5e6ffd9ae5
commit 881c1b3d49
+1 -1
View File
@@ -67,7 +67,7 @@ trait TraitServer
*/
private function onPcntlSignal($signal, $callback): void
{
if (get_called_class() == CoroutineServer::class) {
if (get_called_class() != CoroutineServer::class) {
pcntl_signal(SIGINT, [$this, 'onSigint']);
} else {
Coroutine::create(function () use ($signal, $callback) {