Fix typo in BITChannel from previous commit that would cause persistDataItemQueueWithBackgroundTask to block

This commit is contained in:
Benjamin Scholtysik (Reimold)
2017-12-07 11:34:44 -08:00
parent 6b9c28fe3c
commit 13d3989248

View File

@@ -197,7 +197,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)persistDataItemQueueWithBackgroundTask:(UIApplication *)application {
__weak typeof(self) weakSelf = self;
dispatch_sync(self.dataItemsOperations, ^{
dispatch_async(self.dataItemsOperations, ^{
typeof(self) strongSelf = weakSelf;
[strongSelf persistDataItemQueue:&BITTelemetryEventBuffer];
});