From 303d41b16b930ab07799a16cc4f2fc40443483a4 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Tue, 25 Nov 2025 20:42:13 -0800 Subject: [PATCH] Try switching modes --- .../Packages/Sources/SecretAgentKit/SocketController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Packages/Sources/SecretAgentKit/SocketController.swift b/Sources/Packages/Sources/SecretAgentKit/SocketController.swift index 9de2564..5197810 100644 --- a/Sources/Packages/Sources/SecretAgentKit/SocketController.swift +++ b/Sources/Packages/Sources/SecretAgentKit/SocketController.swift @@ -45,7 +45,7 @@ public struct SocketController { await fileHandle.acceptConnectionInBackgroundAndNotifyOnMainActor() } } - fileHandle.acceptConnectionInBackgroundAndNotify(forModes: [RunLoop.Mode.common]) + fileHandle.acceptConnectionInBackgroundAndNotify() logger.debug("Socket listening at \(path)") } @@ -123,7 +123,7 @@ private extension FileHandle { /// Ensures acceptConnectionInBackgroundAndNotify will be called on the main actor. /// - Parameter modes: the runloop modes to use. - @MainActor func acceptConnectionInBackgroundAndNotifyOnMainActor(forModes modes: [RunLoop.Mode]? = [RunLoop.Mode.common]) { + @MainActor func acceptConnectionInBackgroundAndNotifyOnMainActor(forModes modes: [RunLoop.Mode]? = [RunLoop.Mode.default]) { acceptConnectionInBackgroundAndNotify(forModes: modes) }