diff --git a/Sources/SecretAgent/AppDelegate.swift b/Sources/SecretAgent/AppDelegate.swift index 49c109a..40a11a3 100644 --- a/Sources/SecretAgent/AppDelegate.swift +++ b/Sources/SecretAgent/AppDelegate.swift @@ -35,9 +35,9 @@ class AppDelegate: NSObject, NSApplicationDelegate { func applicationDidFinishLaunching(_ aNotification: Notification) { logger.debug("SecretAgent finished launching") Task { - let inputParser = try await XPCAgentInputParser() for await session in socketController.sessions { Task { + let inputParser = try await XPCAgentInputParser() do { for await message in session.messages { let request = try await inputParser.parse(data: message)