Finished updater queue task.

This commit is contained in:
Dmytro Tretiakov committed 2014-08-11 17:48:38 +03:00
1 parent d5d9824b6c
commit b52291cfc6
1 file changed
+9
+9
View File
@@ -106,6 +106,8 @@
@property (assign) BOOL shouldContinueCheck;
@property (nonatomic, retain) NSMutableArray *resultUIDrivers;
@property (assign, getter=isProcessingUpdatersCheck) BOOL processingUpdatersCheck;
@end
@implementation SUUpdaterQueue
@@ -261,6 +263,11 @@
- (void)performCheckForUpdates:(NSString *)selectorName
{
if (self.isProcessingUpdatersCheck)
return;
self.processingUpdatersCheck = YES;
NSUInteger index = 0;
self.shouldContinueCheck = YES;
self.resultUIDrivers = [NSMutableArray array];
@@ -308,6 +315,8 @@
[driver performSelectorOnMainThread:@selector(didNotFindUpdate) withObject:nil waitUntilDone:YES];
}
self.resultUIDrivers = nil;
self.processingUpdatersCheck = NO;
}
- (void)checkForUpdates