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

Commit

Permalink
Merge pull request #129 from natanrolnik/socket-dispatch-group-fix
Browse files Browse the repository at this point in the history
Fix dispatch group leave in LogstashDestinationSocket
  • Loading branch information
albertodebortoli authored Jan 2, 2024
2 parents b9bb34d + 26facab commit 5a29497
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 5a29497

Please sign in to comment.