mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-06 11:28:22 +00:00
Previously runMigrations() blocked the entire app startup (and UI) waiting for the built-in Tor daemon to come online. This moves the startup gate so: - TorManager.start() is called immediately at migration start - isStartingApp is set to false right after the lifecycle observer is registered, so the UI becomes visible without waiting for Tor - The Tor readiness wait (with retry logic) is kept but now happens *after* isStartingApp=false, delaying only relay connections - ConnectivityService.waitForTorIfNeeded() is called after the startup gate so it also holds off on client.connect() until Tor is ready - A new Amber.waitForTorIfNeeded() helper encapsulates the TorManager check https://claude.ai/code/session_01QfnSvDcaWayKwrAM71QUeA