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

Commit

Permalink
Fix dispatch group leave in LogstashDestinationSocket
Browse files Browse the repository at this point in the history
  • Loading branch information
natanrolnik committed Dec 18, 2023
1 parent b9bb34d commit 26facab
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 26facab

Please sign in to comment.