Handle concurrent requests to socket (#495)

* Socket updates

* Sendable.

* Update tests.
This commit is contained in:
Max Goedjen
2023-12-11 00:59:30 -08:00
committed by GitHub
parent 7b0ccbcc16
commit cf58630065
8 changed files with 73 additions and 48 deletions

View File

@@ -27,9 +27,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {
return SocketController(path: path)
}()
private var updateSink: AnyCancellable?
private let logger = Logger(subsystem: "com.maxgoedjen.secretive.secretagent", category: "AppDelegate")
func applicationDidFinishLaunching(_ aNotification: Notification) {
Logger().debug("SecretAgent finished launching")
logger.debug("SecretAgent finished launching")
DispatchQueue.main.async {
self.socketController.handler = self.agent.handle(reader:writer:)
}