Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Fix dispatch group leave in LogstashDestinationSocket #129

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion JustLog/Classes/LogstashDestinationSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
}
Expand Down
Loading