auto-shutdown bugfix

This commit is contained in:
Mateusz Walkowiak
2024-03-03 20:20:28 +01:00
committed by GitHub
parent a59626f1df
commit 1e326fa6cc
+1 -1
View File
@@ -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();
}