Try switching modes

This commit is contained in:
Max Goedjen 2025-11-25 20:42:13 -08:00
parent ca26d6211e
commit 80b79f5936
No known key found for this signature in database

View File

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