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) }