Remove unneeded close in rigctld, rotctld, ampctld

pull/193/head
Michael Black 2020-01-25 23:05:44 -06:00
rodzic bece609aca
commit 493f527043
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6599353EC683404D
3 zmienionych plików z 0 dodań i 12 usunięć

Wyświetl plik

@ -680,8 +680,6 @@ void *handle_socket(void *arg)
handle_exit:
#ifdef __MINGW32__
closesocket(handle_data_arg->sock);
#else
close(handle_data_arg->sock);
#endif
free(arg);

Wyświetl plik

@ -1043,14 +1043,6 @@ handle_exit:
fclose(fsockin);
fclose(fsockout);
// for everybody else we close the handle after fclose
#ifndef __MINGW32__
retcode = close(handle_data_arg->sock);
if (retcode != 0) { rig_debug(RIG_DEBUG_ERR, "%s: close(handle_data_arg->sock) %s\n", __func__, strerror(retcode)); }
#endif
free(arg);
#ifdef HAVE_PTHREAD

Wyświetl plik

@ -693,8 +693,6 @@ void *handle_socket(void *arg)
handle_exit:
#ifdef __MINGW32__
closesocket(handle_data_arg->sock);
#else
close(handle_data_arg->sock);
#endif
free(arg);