[ios] Remove filter of single metric event

This commit is contained in:
Jesse Bounds
2017-05-30 10:51:07 -07:00
parent fc495dec12
commit 7b85bcccae

View File

@@ -317,13 +317,6 @@ const NSTimeInterval MGLFlushInterval = 180;
return;
}
if ([self.eventQueue count] <= 1) {
[self.eventQueue removeAllObjects];
[[UIApplication sharedApplication] endBackgroundTask:_backgroundTaskIdentifier];
_backgroundTaskIdentifier = UIBackgroundTaskInvalid;
return;
}
NSArray *events = [NSArray arrayWithArray:self.eventQueue];
[self.eventQueue removeAllObjects];