mirror of
https://github.com/ansible/awx.git
synced 2026-03-28 22:35:08 -02:30
Need to remove listeners from $rootScope.adhoc_event_socket
This commit is contained in:
@@ -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
|
// Unbind $rootScope socket event binding(s) so that they don't get triggered
|
||||||
// in another instance of this controller
|
// in another instance of this controller
|
||||||
$scope.$on('$destroy', function() {
|
$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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user