X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/1219cbffa9b305ac8ed53e2bb333443ea3bb1a75..44617167ac216781537290dce9cc097df89dc3d2:/Server/src/tcpserver.cpp?ds=inline 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