fix(ports): never hop to default when stored port busy; prefer stored port and let bind micro-retry handle release to avoid port swapping on recompiles
parent
1b892dcf49
commit
f4bc7cd4fd
|
|
@ -53,6 +53,8 @@ namespace UnityMcpBridge.Editor.Helpers
|
|||
Debug.Log($"Stored port {storedConfig.unity_port} became available after short wait");
|
||||
return storedConfig.unity_port;
|
||||
}
|
||||
// Prefer sticking to the same port; let the caller handle bind retries/fallbacks
|
||||
return storedConfig.unity_port;
|
||||
}
|
||||
|
||||
// If no valid stored port, find a new one and save it
|
||||
|
|
|
|||
Loading…
Reference in New Issue