void KaoServer::onSocketDone(KaoConnector* obj) { // Remove the dead socket from the array of connections qDebug() << "Connection done."; if( pSockets.contains(obj) ) { qDebug() << "Removed socket."; } }