]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/src/connection.cpp
Se agrega un try para tratar de solucionar situaciones en las que el server
[z.facultad/75.42/plaqui.git] / Server / src / connection.cpp
index c355c86d0cf7e195627e69e5afd1c5a7870197e6..cf0e293cdb4a92cd79a310b31e6be230db23e029 100644 (file)
@@ -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 {