diff options
-rw-r--r-- | common/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/socket.c b/common/socket.c index bbc3de2..1a7fe8d 100644 --- a/common/socket.c +++ b/common/socket.c @@ -272,7 +272,7 @@ int socket_connect(const char *addr, uint16_t port) if (setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, (void*)&yes, sizeof(int)) == -1) { perror("setsockopt()"); - close(sfd); + socket_close(sfd); continue; } |