mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 01:21:21 +03:00
Need to remove listeners from $rootScope.adhoc_event_socket
This commit is contained in:
parent
68365effb8
commit
b7b853055c
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user