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
auto-shutdown bugfix
This commit is contained in:
committed by
GitHub
parent
a59626f1df
commit
1e326fa6cc
2
index.js
2
index.js
@@ -489,7 +489,7 @@ wss.on('connection', (ws, request) => {
|
||||
const clientIp = request.headers['x-forwarded-for'] || request.connection.remoteAddress;
|
||||
currentUsers++;
|
||||
dataHandler.showOnlineUsers(currentUsers);
|
||||
if(currentUsers > 0 && serverConfig.autoShutdown === true) {
|
||||
if(currentUsers === 1 && serverConfig.autoShutdown === true) {
|
||||
connectToXdrd();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user