This commit is contained in:
2021-04-12 16:57:25 +08:00
parent c9574ec09c
commit 6208ed6230
+1 -1
View File
@@ -101,7 +101,7 @@ class OnHandshake extends Callback
$event->trigger($eventName, [$request, $response]);
} catch (\Throwable $exception) {
$this->addError($exception, 'throwable');
$this->disconnect($response, 500);
$this->disconnect($response, 401);
} finally {
fire(Event::SYSTEM_RESOURCE_CLEAN);
logger_insert();