Skip to content

Commit

Permalink
fix: interact with Gist timer on main (#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfed authored Jan 6, 2025
1 parent c348351 commit 93200a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Sources/MessagingInApp/Gist/Gist.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ class Gist: GistProvider {
}

private func invalidateTimer() {
queueTimer?.invalidate()
queueTimer = nil
// Timer must be scheduled or modified on main.
threadUtil.runMain {
self.queueTimer?.invalidate()
self.queueTimer = nil
}
}

func resetState() {
Expand Down

0 comments on commit 93200a4

Please sign in to comment.