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:
Bastiaan authored and GitHub committed 2026-11-17 10:32:44 +00:00
1 parent 61f2b01172
commit 154ebe294a
2 files changed
+9

No files matched your search

+3
View File
@@ -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}`);
}