From 80b79f5936e8db2cd2d44d5f05170bf4fc2d0d94 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 891a6c0..5081ca0 100644 --- a/Sources/Packages/Sources/SecretAgentKit/SocketController.swift +++ b/Sources/Packages/Sources/SecretAgentKit/SocketController.swift @@ -52,7 +52,7 @@ public struct SocketController { logger.debug("Session waiting for connection.") } } - fileHandle.acceptConnectionInBackgroundAndNotify(forModes: [RunLoop.Mode.common]) + fileHandle.acceptConnectionInBackgroundAndNotify() logger.debug("Socket listening at \(path)") } @@ -135,7 +135,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) }