mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
channel.c: Remove dead AST_GENERATOR_FD code.
Nothing ever sets the `AST_GENERATOR_FD`, so this block of code will never execute. It also is the only place where the `generate` callback is called with the channel lock held which made it difficult to reason about the thread safety of `ast_generator`s. In passing, also note that `AST_AGENT_FD` isn't used either.
This commit is contained in:
committed by
github-actions[bot]
parent
d55b072a93
commit
e200f51ea4
@@ -201,8 +201,8 @@ extern "C" {
|
||||
*/
|
||||
#define AST_ALERT_FD (AST_MAX_FDS-1) /*!< used for alertpipe */
|
||||
#define AST_TIMING_FD (AST_MAX_FDS-2) /*!< used for timingfd */
|
||||
#define AST_AGENT_FD (AST_MAX_FDS-3) /*!< used by agents for pass through */
|
||||
#define AST_GENERATOR_FD (AST_MAX_FDS-4) /*!< used by generator */
|
||||
#define AST_AGENT_FD (AST_MAX_FDS-3) /*!< unused - formerly used by agents for pass through */
|
||||
#define AST_GENERATOR_FD (AST_MAX_FDS-4) /*!< unused - formerly used by generator */
|
||||
#define AST_JITTERBUFFER_FD (AST_MAX_FDS-5) /*!< used by generator */
|
||||
|
||||
enum ast_bridge_result {
|
||||
|
Reference in New Issue
Block a user