diff --git a/JustLog/Classes/LogstashDestinationSocket.swift b/JustLog/Classes/LogstashDestinationSocket.swift index 5ebdea9..7778a5c 100644 --- a/JustLog/Classes/LogstashDestinationSocket.swift +++ b/JustLog/Classes/LogstashDestinationSocket.swift @@ -93,10 +93,12 @@ class LogstashDestinationSocket: NSObject, LogstashDestinationSocketProtocol { return } - self.dispatchQueue.async(group: dispatchGroup) { + self.dispatchQueue.async { if let error = error { sendStatus[tag] = error } + + dispatchGroup.leave() } } }