mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-31 01:09:18 +02:00
make sure antenna timeout is cleared on user connect
This commit is contained in:
@@ -418,6 +418,8 @@ wss.on('connection', (ws, request) => {
|
|||||||
currentUsers++;
|
currentUsers++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (timeoutAntenna) clearTimeout(timeoutAntenna);
|
||||||
|
|
||||||
helpers.handleConnect(clientIp, currentUsers, ws, (result) => {
|
helpers.handleConnect(clientIp, currentUsers, ws, (result) => {
|
||||||
if (result === "User banned") {
|
if (result === "User banned") {
|
||||||
ws.close(1008, 'Banned IP');
|
ws.close(1008, 'Banned IP');
|
||||||
|
|||||||
Reference in New Issue
Block a user