mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
OP-1044 fix slow tiles loading preventig to ask for version at each request
This commit is contained in:
parent
6d00239e13
commit
ab9f9cacec
@ -88,6 +88,10 @@ bool UrlFactory::IsCorrectGoogleVersions()
|
||||
|
||||
void UrlFactory::TryCorrectGoogleVersions()
|
||||
{
|
||||
static bool versionRetrieved = false;
|
||||
if (versionRetrieved){
|
||||
return;
|
||||
}
|
||||
QMutexLocker locker(&mutex);
|
||||
|
||||
|
||||
@ -167,6 +171,7 @@ void UrlFactory::TryCorrectGoogleVersions()
|
||||
#endif // DEBUG_URLFACTORY
|
||||
}
|
||||
reply->deleteLater();
|
||||
versionRetrieved = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user