diff --git a/macOS/WindowManager.swift b/macOS/WindowManager.swift index 7be7d36..8c2b90d 100644 --- a/macOS/WindowManager.swift +++ b/macOS/WindowManager.swift @@ -147,7 +147,7 @@ extension AXObserver { // Retain the observer until the stream is finished let _observer = observer continuation.onTermination = { _ in - _ = _observer + withExtendedLifetime(_observer) {} } } }