Skip to content
Open
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
7 changes: 7 additions & 0 deletions Sources/Fluid/Services/SimpleUpdater.swift
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,13 @@ final class SimpleUpdater {
DebugLogger.shared.info("SimpleUpdater: Successfully relaunched app, terminating old instance", source: "SimpleUpdater")
// Give the new instance time to fully start before terminating
DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) {
// Arm the fallback watchdog BEFORE calling terminate, because terminate blocks.
// The AppDelegate cleanup can take up to 16 seconds (8s for Private AI + 8s for ASR).
// We wait 20 seconds on a background queue to ensure it only fires if truly hung.
DispatchQueue.global().asyncAfter(deadline: .now() + 20.0) {
exit(0)
}
Comment thread
greptile-apps[bot] marked this conversation as resolved.

NSApp.terminate(nil)
}
}
Expand Down
Loading