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() } }