diff --git a/ground/src/libs/opmapcontrol/src/core/opmaps.cpp b/ground/src/libs/opmapcontrol/src/core/opmaps.cpp index 36f82ddc4..0e4c6ccf9 100644 --- a/ground/src/libs/opmapcontrol/src/core/opmaps.cpp +++ b/ground/src/libs/opmapcontrol/src/core/opmaps.cpp @@ -193,15 +193,15 @@ namespace core { qDebug()<<"Starting get response ";//<isFinished() || (time.elapsed()>(6*Timeout))) ){QCoreApplication::processEvents(QEventLoop::AllEvents);} + time.restart(); + while( !(reply->isFinished() || (time.elapsed()>(Timeout))) ){QCoreApplication::processEvents(QEventLoop::AllEvents);} #ifdef DEBUG_TIMINGS qDebug()<<"Network time:"<error()<<" abort?"<<(time.elapsed()>Timeout*6); + qDebug()<<"Finished?"<error()<<" abort?"<<(time.elapsed()>Timeout); #endif //DEBUG_GMAPS - if( (reply->error()!=QNetworkReply::NoError) || (time.elapsed()>Timeout*6)) + if( (reply->error()!=QNetworkReply::NoError) || (time.elapsed()>Timeout)) { #ifdef DEBUG_GMAPS qDebug()<<"Request timed out ";//<