mirror of
https://github.com/neon443/NearFuture.git
synced 2026-11-30 20:24:48 +00:00
improve notification handling
fix crash on ocmpleting events
This commit is contained in:
2 files changed
+16
-5
No files matched your search
@@ -35,7 +35,7 @@ struct CompleteEventButton: View {
|
||||
progress = 0
|
||||
|
||||
timer = Timer(timeInterval: 0.02, repeats: true) { timer in
|
||||
DispatchQueue.main.sync {
|
||||
DispatchQueue.main.async {
|
||||
guard completeInProgress else { return }
|
||||
guard let timer = self.timer else { return }
|
||||
guard timer.isValid else { return }
|
||||
|
||||