1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Need to remove listeners from $rootScope.adhoc_event_socket

This commit is contained in:
Michael Abashian 2016-06-03 11:11:59 -04:00
parent 68365effb8
commit b7b853055c

View File

@ -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);
});
}
}