X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/212f9ae5dc8899bab8b23ed13d81c28c510db3c3..dea314b92324ad67455bb039e2078652ab0e5824:/Server/src/connection.cpp?ds=sidebyside 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 {