You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-26 22:13:53 +01:00
make sure antenna timeout is cleared on user connect
This commit is contained in:
committed by
GitHub
parent
edf4408283
commit
60c73a138c
@@ -418,6 +418,8 @@ wss.on('connection', (ws, request) => {
|
||||
currentUsers++;
|
||||
}
|
||||
|
||||
if (timeoutAntenna) clearTimeout(timeoutAntenna);
|
||||
|
||||
helpers.handleConnect(clientIp, currentUsers, ws, (result) => {
|
||||
if (result === "User banned") {
|
||||
ws.close(1008, 'Banned IP');
|
||||
|
||||
Reference in New Issue
Block a user