From aac57e03914cd2e28b97e42126900df2d99f44d0 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 9 Mar 2024 15:05:28 +0100 Subject: [PATCH] (Android) Increased the maximum waiting time for the storage mount retry loop from 3 to 4 seconds --- es-app/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es-app/src/main.cpp b/es-app/src/main.cpp index 1aee7dcc1..37553cb25 100644 --- a/es-app/src/main.cpp +++ b/es-app/src/main.cpp @@ -610,12 +610,12 @@ int main(int argc, char* argv[]) // If ES-DE is set as the home app/launcher we may be in a situation where we get started // before the external storage has been mounted. If the application data directory or the // ROMs directory have been located on this storage then the configurator will get executed. - // To prevent the likelyhood of this happening we wait up to 30 * 100 milliseconds, then + // To prevent the likelyhood of this happening we wait up to 40 * 100 milliseconds, then // we give up. This is not an airtight solution but it hopefully decreases the risk of // this failure occuring. Under normal circumstances the storage would be mounted when // the application is starting, so no delay would occur. if (SDL_AndroidGetExternalStorageState() == 0) { - for (int i {0}; i < 30; ++i) { + for (int i {0}; i < 40; ++i) { __android_log_print(ANDROID_LOG_VERBOSE, ANDROID_APPLICATION_ID, "Storage not mounted, waiting 100 ms until next attempt"); SDL_Delay(100);