Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return client_api error codes, even with json output enabled
Previously on error, the client API would return 0 (success) in the cleanup and fail error handling path when outputting json to avoid double-closing the JSON output. With iperf_json_finish now idempotent, the client api can faithfully return an error when it fails, and the calling context will not double-close the output if it has already been closed. This addresses #1405 .
- Loading branch information