wait for new packets on the agent socket after the handler is invoked. this fixes https://github.com/maxgoedjen/secretive/issues/244

This commit is contained in:
David Gunzinger 2021-11-18 09:13:56 +01:00
parent 6bb9fd376f
commit f2529ba837
1 changed files with 1 additions and 0 deletions

View File

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