Merge pull request #1067 from ILLISIS/fix-game-port-in-use

Replace a stored game port that another process holds
This commit is contained in:
ILLISIS authored and GitHub committed 2026-10-13 20:23:46 +01:00
1 parent 48e8c53776
commit 137211d55d
3 files changed
+100 -2

No files matched your search

+3
View File
@@ -678,6 +678,9 @@ end`.replace(/\r?\n/g, " ");
// After changing the status this function is responsible for calling notifyExit if it throws.
this.notifyStatus("starting");
try {
if (this.config.get("factorio.game_port") === null) {
this.server.gamePort = await this._host.assignFreeGamePort(this.id);
}
const factorioVersions = await this.sendTo("controller", new lib.FactorioVersionsRequest());
await this._loadStats();
// Resolve a release channel target (e.g. "stable") to a concrete