only post needs render notification on successful tiles

This commit is contained in:
Justin R. Miller
2014-02-19 17:33:22 -08:00
parent d94b8bbcec
commit 536e0343c9

View File

@@ -450,10 +450,10 @@ namespace llmr
dispatch_async(dispatch_get_main_queue(), ^(void)
{
foreground_callback();
[[NSNotificationCenter defaultCenter] postNotificationName:MBXNeedsRenderNotification object:nil];
});
if ( ! error)
[[NSNotificationCenter defaultCenter] postNotificationName:MBXNeedsRenderNotification object:nil];
}];
task.taskDescription = [@(tile_object->id.z) stringValue];