Try switching modes

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

View File

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