From b15a13bc9ef869db11bf7e9be1b0916a869efed6 Mon Sep 17 00:00:00 2001 From: Geoffrey Goh Date: Wed, 25 Nov 2015 17:00:21 -0800 Subject: [PATCH] add comment --- CodePush.m | 1 + 1 file changed, 1 insertion(+) diff --git a/CodePush.m b/CodePush.m index cb6767b..09f0ab7 100644 --- a/CodePush.m +++ b/CodePush.m @@ -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"