Closed andreyz closed 1 year ago
Ideally DispatchQueue and/or URLDataTask could be controlled in tests, as to verify various race conditions introduced by the GC async blocks.
Fantastic! You marked this PR as draft, can you ping me when you'd like a review?
@winsmith I wanted to test this patch in beta release of my app first.
Could you tweak your tests to fix missing Xcode 12 meanwhile?
For sure!
@andreyz It is done!
This PR seems to address the issue in my TestFlight build. I've also ran a leaks check in Instruments, just in case.
@winsmith please have a look. Not sure if use of unowned self
was justified there, if it was — you'd know.
It was you know. One of those times when you just write the line without thinking about it. Thanks for the PR, it works on my test devices as well.
Fixes #83
My assumption the crash is due to
self
ie SignalManager being deallocated before completion handler for URLDataTask completes.