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

Commit

Permalink
Close task instead of cancel
Browse files Browse the repository at this point in the history
This feels more correct in the context of what we're doing.
  • Loading branch information
diemer committed Jun 2, 2022
1 parent 767ec6e commit d6e26d7
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 @@ -103,7 +103,9 @@ class LogstashDestinationSocket: NSObject, LogstashDestinationSocketProtocol {
task.resume()

dispatchGroup.notify(queue: queue) {
task.cancel()
task.closeRead()
task.closeWrite()

complete(sendStatus)
}
}
Expand Down

0 comments on commit d6e26d7

Please sign in to comment.