Headless: Always print the debugger port when --debugger=0 picks one

wsdbg --launch learns the port from our output, which without --log was
nothing. Also set the port before reporting the server as running, so
WebServerWaitForStartup() callers can read it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-10-01 15:39:08 -06:00
1 parent cfde58575a
commit 2fdc96e9df
3 files changed
+12 -5

No files matched your search

+2 -1
View File
@@ -854,9 +854,10 @@ static void WebServerThread() {
}
}
// Before RUNNING, so WebServerWaitForStartup() callers can read the port.
g_Config.iRemoteISOPort = http->Port();
UpdateStatus(ServerStatus::RUNNING);
g_Config.iRemoteISOPort = http->Port();
RegisterServer(http->Port());
double lastRegister = time_now_d();