mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 15:43:13 +09:00
Merge pull request #1211 from bbassie/fix/pairing-restart-pending
Don't flag a restart when a new host pairs
This commit is contained in:
1 parent
61f2b01172
commit
154ebe294a
2 files changed
+9
No files matched your search
@@ -297,9 +297,12 @@ export async function ensurePaired(
|
||||
},
|
||||
});
|
||||
|
||||
// The host has not started yet, so the new token needs no restart.
|
||||
const restartRequired = config.restartRequired;
|
||||
config.set("host.id", result.hostId);
|
||||
config.set("host.name", result.name);
|
||||
config.set("host.controller_token", result.token);
|
||||
config.restartRequired = restartRequired;
|
||||
await config.save();
|
||||
logger.info(`Host approved as "${result.name}" with id ${result.hostId}`);
|
||||
}
|
||||
Reference in new issue
Block a user