add comment

This commit is contained in:
Geoffrey Goh
2015-11-25 17:00:21 -08:00
parent 6922cb021d
commit b15a13bc9e

View File

@@ -362,6 +362,7 @@ RCT_EXPORT_METHOD(installUpdate:(NSDictionary*)updatePackage
if (installMode == CodePushInstallModeImmediate) {
[self loadBundle];
} else if (installMode == CodePushInstallModeOnNextResume) {
// Ensure we do not add the listener twice.
if (!hasRestartListener) {
// Register for app resume notifications so that we
// can check for pending updates which support "restart on resume"