X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/1219cbffa9b305ac8ed53e2bb333443ea3bb1a75..0949257d7ae221c05b1bc35f7d05528f187cc42c:/Server/src/tcpserver.cpp diff --git a/Server/src/tcpserver.cpp b/Server/src/tcpserver.cpp index 3e4d1c8..04fd8ba 100644 --- a/Server/src/tcpserver.cpp +++ b/Server/src/tcpserver.cpp @@ -133,7 +133,10 @@ void TCPServer::real_run(void) throw() { string("Error creando conexión nueva: ") + e.errstr()); continue; // Supongo que puede seguir aceptando conexiones. } - _connection_opened(connection->get_host(), connection->get_port()); + if (!stop()) { + // Solo avisamos si la conexión que viene no es para matarnos. + _connection_opened(connection->get_host(), connection->get_port()); + } #ifdef DEBUG cerr << __FILE__ << "(" << __LINE__ << ")" << ": real_run(): connection = " << connection