Minor fix

This commit is contained in:
Shobhit Pathak 2023-09-28 11:30:21 +05:30
parent f70b93764f
commit 18de41ceb4
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ class RconManager {
async disconnect_rcon(server_id) {
console.log('starting disconnect', server_id)
if (!this.rcons[server_id].connected) {
if ( !(server_id in this.rcons) || (!this.rcons[server_id].connected)) {
return Promise.resolve();
}

View File

@ -21,7 +21,7 @@ A simple web panel to control CS2 servers via RCON
- Add teams and players
- Add password option while setting up the server
- Improve UX/UI
- Improve/clean code
- Improve/clean code (This is my first time working with node :P)
- Create executable
## Limitations