Add comment to clean_up_and_fail
Этот коммит содержится в:
родитель
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);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user