Upstream version 10.38.220.0
[platform/framework/web/crosswalk.git] / src / remoting / webapp / host_installer.js
index 45dbadd..a87e217 100644 (file)
@@ -127,7 +127,7 @@ remoting.HostInstaller.prototype.downloadAndWaitForInstall = function() {
       return Promise.resolve(true);
     }
 
-    if (that.downloadAndWaitForInstallPromise_ !== null) {
+    if (that.downloadAndWaitForInstallPromise_ === null) {
       that.downloadAndWaitForInstallPromise_ = new Promise(
         /** @param {Function} resolve */
         function(resolve){
@@ -159,4 +159,4 @@ remoting.HostInstaller.prototype.cancel = function() {
     this.checkInstallIntervalId_ = null;
   }
   this.downloadAndWaitForInstallPromise_ = null;
-};
\ No newline at end of file
+};