Update ServerEventHandler.php

-When the token is incorrect, repeated connection events occur in the framework
This commit is contained in:
Wang
2021-02-27 00:04:02 +08:00
committed by GitHub
parent 874f061468
commit faf9f5d988

View File

@@ -417,6 +417,7 @@ class ServerEventHandler
if (!$token($access_token)) {
$server->close($request->fd);
Console::warning("Unauthorized access_token: " . $access_token);
return;
}
} elseif (is_string($token)) {
if ($access_token !== $token) {