Update connection.cpp

This commit is contained in:
Piotr Duszynski 2023-09-02 11:45:06 +02:00 committed by GitHub
parent af6cd4d79e
commit 798e7e10c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,6 @@ void* process_connection(void *arg)
} else
original_port = ntohs(peer_sockaddr.sin_port);
get_ipstr(threads[tid].clients[i], threads[tid].client_src_ip[i], ipstr);
close_socket:
if (configuration->getConfigValue(OPT_DEBUG))
@ -165,8 +164,6 @@ void* process_connection(void *arg)
close(threads[tid].clients[i]);
fingerp.addTimedOutConnection(threads[tid].client_src_ip[i], original_port);
pthread_mutex_lock(&new_connection_mutex);
threads[tid].clients[i] = 0;
threads[tid].client_count--;