Skip to content

Commit

Permalink
Interact with Gist timer on main
Browse files Browse the repository at this point in the history
  • Loading branch information
dfed authored Dec 4, 2024
1 parent 9f5b69c commit 5fd08c9
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 {
queueTimer?.invalidate()
queueTimer = nil
}
}

func resetState() {
Expand Down

0 comments on commit 5fd08c9

Please sign in to comment.