Поправки багов

This commit is contained in:
Book Pauk
2022-11-27 21:03:12 +07:00
parent a7f71562b4
commit 49583d3407
4 changed files with 15 additions and 21 deletions

View File

@@ -68,7 +68,7 @@ class WebSocketController {
this.send({_rok: 1}, req, ws);
//access
if (!this.webAccess.hasAccess(req.accessToken)) {
if (!await this.webAccess.hasAccess(req.accessToken)) {
await utils.sleep(500);
const salt = this.webAccess.newToken();
this.send({error: 'need_access_token', salt}, req, ws);