You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Reachability via Cocoapods in swift project. Sometimes catching a crash like this:
Cannot reproduce this crash, but I catch it on device only.
Could it happen because I call stopNotifier in instance owner deinit?
Probably, the object has been already deallocated, but a block in reachabilitySerialQueue is still executed. Wouldn't it be better to pass self in context.info using __bridge_retained so no garbage will pass in the callback?
The text was updated successfully, but these errors were encountered:
Using Reachability via Cocoapods in swift project. Sometimes catching a crash like this:
Cannot reproduce this crash, but I catch it on device only.
Could it happen because I call stopNotifier in instance owner deinit?
Probably, the object has been already deallocated, but a block in
reachabilitySerialQueue
is still executed. Wouldn't it be better to pass self incontext.info
using__bridge_retained
so no garbage will pass in the callback?The text was updated successfully, but these errors were encountered: