Remove CommProtocolReceive commands, Remove protocol onConnect() functions, pass Setup::class to protocols
This commit is contained in:
@@ -141,7 +141,11 @@ final class SocketServer {
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->handler[0]->{$this->handler[1]}($r);
|
||||
// If the handler returns a value, then that is the main thread
|
||||
if (! $this->handler[0]->{$this->handler[1]}($r)) {
|
||||
$r->close();
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user