Added requiresMainQueueSetup to prevent warning and future side-effects (#1035)

This commit is contained in:
Djalma Araújo
2017-10-09 11:37:43 +01:00
committed by Max
parent 6872c127a1
commit 751bf02836

View File

@@ -302,6 +302,11 @@ static NSString *bundleResourceSubdirectory = nil;
};
};
+ (BOOL)requiresMainQueueSetup
{
return YES;
}
- (void)dealloc
{
// Ensure the global resume handler is cleared, so that
@@ -627,7 +632,7 @@ RCT_EXPORT_METHOD(downloadUpdate:(NSDictionary*)updatePackage
_didUpdateProgress = NO;
self.paused = NO;
}
NSString * publicKey = [[CodePushConfig current] publicKey];
[CodePushPackage