mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-05-08 08:28:58 +02:00
Restrict connectionAcceptedNotifications to creating filehandle
This commit is contained in:
@@ -39,7 +39,7 @@ public struct SocketController {
|
||||
Task { @MainActor [fileHandle, sessionsContinuation, logger] in
|
||||
// Create the sequence before triggering the notification to
|
||||
// ensure it will not be missed.
|
||||
let connectionAcceptedNotifications = NotificationCenter.default.notifications(named: .NSFileHandleConnectionAccepted)
|
||||
let connectionAcceptedNotifications = NotificationCenter.default.notifications(named: .NSFileHandleConnectionAccepted, object: fileHandle)
|
||||
|
||||
fileHandle.acceptConnectionInBackgroundAndNotify()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user