Skip to content

Commit

Permalink
Modify error conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
gewill committed Dec 20, 2023
1 parent 5c313a0 commit 9303f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/IperfSwift/IperfRunner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public class IperfRunner {
code = iperf_run_server(self.currentTest)
}
if code < 0 || i_errno != IperfError.IENONE.rawValue,
self.state != .finished {
self.currentTest?.pointee.done == 0 {
self.onError(IperfError.init(rawValue: i_errno) ?? .UNKNOWN)
} else {
guard let configuration = self.configuration else {
Expand Down

0 comments on commit 9303f49

Please sign in to comment.