]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/src/tcpserver.cpp
- Se arregla el bug de ControlClient::get_host() y ControlClient::get_port().
[z.facultad/75.42/plaqui.git] / Server / src / tcpserver.cpp
index d15f34ddb31bcae01ff02c840975c04ad55da495..e78e53ca82e65012b5c35fbcd08f4d38308140ed 100644 (file)
@@ -41,6 +41,11 @@ TCPServer::~TCPServer(void) {
 #ifdef DEBUG
        cerr << __FILE__ <<  ": destructor." << endl;
 #endif // DEBUG
+       Glib::Mutex::Lock lock(connections_mutex);
+       for (ConnectionList::iterator con = connections.begin();
+                       con != connections.end(); con++) {
+               (*con)->finish(true);
+       }
 }
 
 TCPServer::TCPServer(const Connection::Port& port): socket(sockbuf::sock_stream) {