Prevent queryTime reference from having a invalid time (after computer sleep)
@@ -7269,10 +7269,13 @@ void DeRestPlugin::idleTimerFired()
QTime t = QTime::currentTime();
if (d->queryTime > t)
+ {
+ if (t.secsTo(d->queryTime) < (60 * 30)) // prevent stallation
{
DBG_Printf(DBG_INFO_L2, "Wait %ds till query finished\n", t.secsTo(d->queryTime));
return; // wait finish
}
+ }
d->queryTime = t;
