socket close: no need to use shutdown and close together, close is the recommended

master
Denes Matetelki 12 years ago
parent fa1a10b235
commit 987f41ad21

@ -65,13 +65,6 @@ bool Socket::closeSocket()
{ {
TRACE; TRACE;
if (shutdown(m_socket, SHUT_RDWR) == -1) {
LOG_BEGIN(Logger::ERR)
LOG_PROP("Error message", strerror(errno))
LOG_END("Could not shutdown socket.");
return false;
}
if (close(m_socket) == -1) { if (close(m_socket) == -1) {
LOG_BEGIN(Logger::ERR) LOG_BEGIN(Logger::ERR)
LOG_PROP("Error message", strerror(errno)) LOG_PROP("Error message", strerror(errno))

Loading…
Cancel
Save