mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-11-28 13:10:57 +00:00
Try switching modes
This commit is contained in:
parent
ca26d6211e
commit
80b79f5936
@ -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)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user