Browse Source

AMBARI-10136. Web Client Continues To Make Requests After Logout (alexantonenko)

Alex Antonenko 10 years ago
parent
commit
dc6540318d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      ambari-web/app/controllers/wizard/step9_controller.js

+ 3 - 1
ambari-web/app/controllers/wizard/step9_controller.js

@@ -196,7 +196,9 @@ App.WizardStep9Controller = Em.Controller.extend({
         if (self.get('currentOpenTaskId')) {
           self.loadCurrentTaskLog();
         }
-        self.doPolling();
+        if (App.router.loggedIn) {
+          self.doPolling();
+        }
       }, this.get('POLL_INTERVAL'));
     }
   },