X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/212f9ae5dc8899bab8b23ed13d81c28c510db3c3..78a6866a5076cee1015d8985b5bbbb84adf32576:/Server/src/connection.cpp diff --git a/Server/src/connection.cpp b/Server/src/connection.cpp index c355c86..cf0e293 100644 --- a/Server/src/connection.cpp +++ b/Server/src/connection.cpp @@ -79,16 +79,13 @@ void Connection::finish(void) { cerr << __FILE__ << "(" << __LINE__ << ")" << ": finish();" << endl; #endif // DEBUG - //socket_mutex.lock(); + Runnable::finish(); try { + // Para que el socket retorne el control, cierro sus canales de E/S. socket->shutdown(sockbuf::shut_readwrite); - // FIXME socket->close(sockbuf::shut_readwrite); - // close(socket->sd()); } catch (const sockerr& e) { signal_error().emit(e.serrno(), e.errstr()); } - //socket_mutex.unlock(); - Runnable::finish(); } const string& Connection::get_host(void) const {