codex: restore moved callback server comment

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Michael Fan
2026-03-25 15:04:06 -04:00
parent 76bb4d670f
commit e8ed25dd38

View File

@@ -322,6 +322,8 @@ fn bind_server(port: u16) -> io::Result<Server> {
.map(|io_err| io_err.kind() == io::ErrorKind::AddrInUse)
.unwrap_or(false);
// If the address is in use, there is probably another instance of the callback
// server running. Attempt to cancel it and retry.
if is_addr_in_use {
if !cancel_attempted {
cancel_attempted = true;