aboutsummaryrefslogtreecommitdiffstats
path: root/Source/YRKSpinningProgressIndicator.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/YRKSpinningProgressIndicator.m')
-rw-r--r--Source/YRKSpinningProgressIndicator.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/YRKSpinningProgressIndicator.m b/Source/YRKSpinningProgressIndicator.m
index f3ccab87..a1f70e9d 100644
--- a/Source/YRKSpinningProgressIndicator.m
+++ b/Source/YRKSpinningProgressIndicator.m
@@ -287,7 +287,10 @@
{
if (_isIndeterminate) _isIndeterminate = NO;
_currentValue = doubleValue;
- [self displayIfNeeded];
+ if ([NSThread isMainThread])
+ [self displayIfNeeded];
+ else
+ [self performSelectorOnMainThread:@selector(displayIfNeeded) withObject:nil waitUntilDone:NO];
}
- (double)maxValue