properly handle threading for restarts

This commit is contained in:
Justin R. Miller
2014-04-23 09:25:31 -07:00
parent 67aa10bc2c
commit 8db741c234

View File

@@ -427,7 +427,14 @@ namespace llmr
void restart()
{
viewController.paused = NO;
if ([NSThread isMainThread])
{
viewController.paused = NO;
}
else
{
[viewController performSelectorOnMainThread:@selector(setPaused:) withObject:@(NO) waitUntilDone:NO];
}
}
double time()