Skip to content

Commit 506f67e

Browse files
committed
fix: do not continue starting the app when load stage fails
Signed-off-by: Tommy van der Vorst <tommy@pixelspark.nl>
1 parent 2f6f7c3 commit 506f67e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sushitrain/AppState.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,11 @@ struct SyncState {
300300
}
301301
}
302302

303+
if case .error(_) = self.startupState {
304+
Log.warn("Not starting up as client load failed earlier.")
305+
return
306+
}
307+
303308
// Check if we need to show onboarding; if so, we interrupt the startup process here and come back later
304309
if self.startupState == .notStarted {
305310
Log.info(

0 commit comments

Comments
 (0)