diff options
author | Brad Leege <bleege@gmail.com> | 2015-05-08 10:23:14 -0500 |
---|---|---|
committer | Brad Leege <bleege@gmail.com> | 2015-05-08 10:23:14 -0500 |
commit | 9f0e9fe847eb0713cc0907c72d174e1d439ba5fc (patch) | |
tree | bba09bf24e34e2bf0ee92885c036112747a5a6e3 /platform | |
parent | 11886a9004e03a5fb360ae7ad766f85754f2a253 (diff) | |
download | qtlocation-mapboxgl-9f0e9fe847eb0713cc0907c72d174e1d439ba5fc.tar.gz |
#1474 - Setting flushAfter back to 60 seconds. Removing debug log statements
Diffstat (limited to 'platform')
-rw-r--r-- | platform/ios/MGLMapboxEvents.m | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m index c4d6d425c4..93891217ca 100644 --- a/platform/ios/MGLMapboxEvents.m +++ b/platform/ios/MGLMapboxEvents.m @@ -163,7 +163,7 @@ NSString *const MGLEventGestureRotateStart = @"Rotation"; // Events Control _eventQueue = [[NSMutableArray alloc] init]; _flushAt = 20; - _flushAfter = 15; + _flushAfter = 60; _token = nil; _instanceID = [[NSUUID UUID] UUIDString]; @@ -384,10 +384,7 @@ NSString *const MGLEventGestureRotateStart = @"Rotation"; [strongSelf flush]; } else if (_eventQueue.count == 1) { // If this is first new event on queue start timer, - NSLog(@"event queue is 1, start timer."); [strongSelf startTimer]; - } else { - NSLog(@"event queue is != 1, don't adjust timer."); } }); } @@ -395,7 +392,6 @@ NSString *const MGLEventGestureRotateStart = @"Rotation"; // Can be called from any thread. // + (void) flush { - NSLog(@"+flush called (likely timer)"); [[MGLMapboxEvents sharedManager] flush]; } @@ -432,7 +428,6 @@ NSString *const MGLEventGestureRotateStart = @"Rotation"; // 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; } |