Skip to content

Commit bbf69c2

Browse files
committed
Fix crash cause from users who update from 2.6.8
1 parent 215969b commit bbf69c2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Flat/Modules/Stores/AuthStore.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ class AuthStore {
3636
flatGenerator.token = user?.token
3737
observeFirstJWTExpire()
3838
} catch {
39-
logger.error("decode user error, \(error)")
39+
// Logger may not be ready...
40+
DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
41+
logger.error("decode user error, \(error)")
42+
}
4043
}
4144
}
4245
}

Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,6 @@ SPEC CHECKSUMS:
267267
YYModel: 2a7fdd96aaa4b86a824e26d0c517de8928c04b30
268268
Zip: b3fef584b147b6e582b2256a9815c897d60ddc67
269269

270-
PODFILE CHECKSUM: c254a639a146d32fefbcaa77e4ae2009269d61e0
270+
PODFILE CHECKSUM: de7e02a7a606f4f0c262ec423510738f9cee7ee7
271271

272272
COCOAPODS: 1.12.1

0 commit comments

Comments
 (0)