mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 23:33:12 +09:00
Controller: back to hosts, instances, modPacks, mods init to null
This commit is contained in:
1 parent
ef32f6f466
commit
25e65910dd
6 files changed
+67
-71
No files matched your search
@@ -273,13 +273,13 @@ ${err.stack}`
|
||||
connector.on("close", () => {
|
||||
if (this.hostConnections.get(data.id) === connection) {
|
||||
this.hostConnections.delete(data.id);
|
||||
this.controller.hostUpdated(this.controller.hosts.get(data.id) as HostInfo);
|
||||
this.controller.hostUpdated(this.controller.hosts!.get(data.id) as HostInfo);
|
||||
} else {
|
||||
logger.warn("Unlisted HostConnection closed");
|
||||
}
|
||||
});
|
||||
this.hostConnections.set(data.id, connection);
|
||||
this.controller.hostUpdated(this.controller.hosts.get(data.id) as HostInfo);
|
||||
this.controller.hostUpdated(this.controller.hosts!.get(data.id) as HostInfo);
|
||||
let src = new lib.Address(lib.Address.host, data.id);
|
||||
connector.ready(socket, src, sessionToken, undefined);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user