reduced game selector minimum height; server race conditions fixed

This commit is contained in:
Max-Wilhelm Bruker
2011-04-17 15:46:47 +02:00
parent 7ae0e31964
commit 2d8b12a576
9 changed files with 40 additions and 45 deletions

View File

@@ -69,8 +69,7 @@ ServerSocketInterface::~ServerSocketInterface()
delete socket;
socket = 0;
// This call has to stay here so that the mutex is not freed prematurely.
server->removeClient(this);
prepareDestroy();
}
void ServerSocketInterface::processProtocolItem(ProtocolItem *item)
@@ -94,8 +93,6 @@ void ServerSocketInterface::flushXmlBuffer()
void ServerSocketInterface::readClient()
{
QMutexLocker locker(&protocolHandlerMutex);
QByteArray data = socket->readAll();
logger->logMessage(QString(data));
xmlReader->addData(data);