From b7b853055c03ed71abb595201b264e1a37284993 Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Fri, 3 Jun 2016 11:11:59 -0400 Subject: [PATCH] Need to remove listeners from $rootScope.adhoc_event_socket --- .../client/src/standard-out/log/standard-out-log.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/standard-out/log/standard-out-log.controller.js b/awx/ui/client/src/standard-out/log/standard-out-log.controller.js index be424f04a1..32b55de80c 100644 --- a/awx/ui/client/src/standard-out/log/standard-out-log.controller.js +++ b/awx/ui/client/src/standard-out/log/standard-out-log.controller.js @@ -45,7 +45,7 @@ export default ['$log', '$rootScope', '$scope', '$state', '$stateParams', 'Proce // Unbind $rootScope socket event binding(s) so that they don't get triggered // in another instance of this controller $scope.$on('$destroy', function() { - $rootScope.event_socket.removeAllListeners("ad_hoc_command_events-" + job_id); + $rootScope.adhoc_event_socket.removeAllListeners("ad_hoc_command_events-" + job_id); }); } }