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
9 changes: 5 additions & 4 deletions Sources/ProcessBarMonitor/Views.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,14 @@ struct MenuBarContentView: View {
window.close()
}

// Standard macOS termination. The 0.5 s + exit(0) fallback that existed here
// was added without a linked issue or documented reproduction, and stop() has no
// persistent background work that would prevent terminate from succeeding.
// If a future regression shows terminate is insufficient, re-add the fallback
// only with a comment explaining the specific failure mode and a tracking issue.
DispatchQueue.main.async {
NSApp.terminate(nil)
}

DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
exit(0)
}
}

private var memorySummary: String {
Expand Down