1
1

Add comment to clean_up_and_fail

Этот коммит содержится в:
Sarah Larsen 2021-09-22 18:54:39 -07:00
родитель c31ca00921
Коммит 0b15c44989

Просмотреть файл

@ -656,6 +656,8 @@ iperf_run_client(struct iperf_test * test)
cJSON_AddStringToObject(test->json_top, "error", iperf_strerror(i_errno)); cJSON_AddStringToObject(test->json_top, "error", iperf_strerror(i_errno));
iperf_json_finish(test); iperf_json_finish(test);
iflush(test); iflush(test);
// Return 0 and not -1 since all terminating function were done here.
// Also prevents error message logging outside the already closed JSON output.
return 0; return 0;
} }
iflush(test); iflush(test);