SwiftSDK icon indicating copy to clipboard operation
SwiftSDK copied to clipboard

Signals not being sent in when SignalManager.init called from a background queue

Open winsmith opened this issue 11 months ago • 0 comments

Found an interesting issue in Swift Client 1.5.1: our signals did not get send from Simulator and debugging showed that the timer scheduled in SignalManager.swift:64 did not fire.

SignalManager.init was called from a background queue. Making the calling code a MainActor fixed it. Assumption is that the timer gets removed when the task on the queue finishes.

Did not further investigate but maybe you want to have a look.

winsmith avatar Mar 21 '24 16:03 winsmith