This commit is contained in:
2020-09-18 21:17:44 +08:00
parent 6e6c9af887
commit 8b450ef1f0
11 changed files with 6 additions and 41 deletions
-3
View File
@@ -28,9 +28,6 @@ class OnConnect extends Callback
public function onHandler(\Swoole\Server $server, int $fd, int $reactorId)
{
$event = Snowflake::app()->event;
if (!$event->exists(Event::RECEIVE_CONNECTION)) {
return;
}
$event->trigger(Event::RECEIVE_CONNECTION, [$server, $fd, $reactorId]);
}