diff --git a/lib/cpp_utils/Socket.cpp b/lib/cpp_utils/Socket.cpp index 809fc93..75737fd 100644 --- a/lib/cpp_utils/Socket.cpp +++ b/lib/cpp_utils/Socket.cpp @@ -136,12 +136,7 @@ bool Socket::accept(int client_socket) { TRACE; sockaddr clientAddr; - socklen_t clientAddrLen; - - /// @bug This needs to be investigated ASAP: if the m_socket is not used before accept, it fails. - LOG_BEGIN(Logger::INFO) - LOG_SPROP(m_socket) - LOG_END("Accept mystery."); + socklen_t clientAddrLen = sizeof(clientAddr); client_socket = ::accept( m_socket, &clientAddr, &clientAddrLen ) ; if ( client_socket == -1 ) {