Fix two server manager issues (#2727)
This commit is contained in:
@@ -238,6 +238,10 @@ export class ServerManager extends EventEmitter {
|
||||
this.currentServerId = this.serverOrder[0];
|
||||
}
|
||||
|
||||
if (!this.hasServers()) {
|
||||
delete this.currentServerId;
|
||||
}
|
||||
|
||||
this.persistServers();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user