Merged luisangelsm/yacreader/headless_server into headless_server

This commit is contained in:
Felix Kauselmann
2015-12-21 12:51:12 +01:00
parent 6b5e4c5ec8
commit 65f2068dd6
13 changed files with 382 additions and 231 deletions

View File

@ -127,10 +127,10 @@ void YACReaderClientConnectionWorker::run()
tries = 0;
QByteArray data;
int dataRead = 0;
while(data.size() < totalSize && tries < 200)
while((quint32)data.size() < totalSize && tries < 200)
{
data.append(clientConnection->readAll());
if(data.length() < totalSize)
if((quint32)data.length() < totalSize)
clientConnection->waitForReadyRead(100);
if(dataRead == data.length()) //no bytes were read
tries++;