Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ private void OnServerLoopUnexpectedlyExited()
// OnServerLoopExited fires from thread pool — marshal to main thread for Unity API safety
EditorApplication.delayCall += () =>
{
// The server just crashed — startup protection blocks recovery if the crash happens
// within the 5-second protection window after a successful start
_startupProtectionService.ClearStartupProtection();

VibeLogger.LogWarning(
Expand All @@ -353,11 +355,6 @@ private void OnServerLoopUnexpectedlyExited()

// Resources already cleaned up by CleanupAfterUnexpectedLoopExit — just clear the reference
_bridgeServer = null;

// The server just crashed — startup protection blocks recovery if the crash happens
// within the 5-second protection window after a successful start
_startupProtectionService.ClearStartupProtection();

_recoveryTrackingService.ScheduleTrackedRecovery(() => StartRecoveryIfNeededAsync(false, CancellationToken.None));
};
}
Expand Down
Loading