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

Commit

Permalink
Update dispatchQueue async to use dispatchGroup instead of explicit l…
Browse files Browse the repository at this point in the history
…eave call
  • Loading branch information
diemer committed Jun 2, 2022
1 parent fba12c8 commit 767ec6e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions JustLog/Classes/LogstashDestinationSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,10 @@ class LogstashDestinationSocket: NSObject, LogstashDestinationSocketProtocol {
return
}

self.dispatchQueue.async {
self.dispatchQueue.async(group: dispatchGroup) {
if let error = error {
sendStatus[tag] = error
}

dispatchGroup.leave()
}
}
}
Expand Down

0 comments on commit 767ec6e

Please sign in to comment.