From f2529ba8370c8d01f021f3a57e4074fe5192b30f Mon Sep 17 00:00:00 2001 From: David Gunzinger Date: Thu, 18 Nov 2021 09:13:56 +0100 Subject: [PATCH] wait for new packets on the agent socket after the handler is invoked. this fixes https://github.com/maxgoedjen/secretive/issues/244 --- SecretAgentKit/SocketController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/SecretAgentKit/SocketController.swift b/SecretAgentKit/SocketController.swift index 0c916c3..39e6b80 100644 --- a/SecretAgentKit/SocketController.swift +++ b/SecretAgentKit/SocketController.swift @@ -62,6 +62,7 @@ public class SocketController { guard let new = notification.object as? FileHandle else { return } Logger().debug("Socket controller received new file handle") handler?(new, new) + new.waitForDataInBackgroundAndNotify() } }