http: Make sure we don't hang checking existence.

It's not great to delay loading when the server is down - we'll do a
proper check when we display the games.

This also fixes shutdown being slow.
This commit is contained in:
Unknown W. Brackets committed 2016-07-04 00:46:42 -07:00
1 parent c793efd69a
commit 429346bb94
12 files changed
+90 -14

No files matched your search

+8
View File
@@ -35,6 +35,14 @@ bool RetryingFileLoader::Exists() {
return true;
}
bool RetryingFileLoader::ExistsFast() {
if (!backend_->ExistsFast()) {
// Retry once, immediately.
return backend_->ExistsFast();
}
return true;
}
bool RetryingFileLoader::IsDirectory() {
// Can't tell if it's an error either way.
return backend_->IsDirectory();