diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m index b5a219546..c4d6d425c 100644 --- a/platform/ios/MGLMapboxEvents.m +++ b/platform/ios/MGLMapboxEvents.m @@ -429,6 +429,13 @@ NSString *const MGLEventGestureRotateStart = @"Rotation"; // Send Array of Events to Server [strongSelf postEvents:events]; + + // Cancel Any Timer That May Running + if (strongSelf.timer) { + NSLog(@"timer still exists after flush, need to clean it up."); + [strongSelf.timer invalidate]; + strongSelf.timer = nil; + } }); }