Closed timbo24 closed 3 years ago
Thank you so much @timbo24 , your PR has been approved and merged, it will be included in the next release!
We have released it! https://github.com/mixpanel/mixpanel-iphone/releases/tag/v3.7.1 Thanks again! I'm closing this issue for now.
Thank you!
Integration Method: Carthage Xcode Version: 12.3 Library Version: 3.6.2 Platform: iOS Language: Objective-C Description: Race condition when calling
eventElapsedTime
Expected Behavior: Not crashingWe're seeing crashes due to the timedEvents property inside of Mixpanel.m not being thread safe. In all other instances, outside of initialization, accesses to timedEvents is wrapped and dispatched to the serialQueue but not in eventElapsedTime.
Suggested change: