]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channel.c: Remove dead AST_GENERATOR_FD code.
authorSean Bright <sean@seanbright.com>
Thu, 6 Feb 2025 16:35:27 +0000 (11:35 -0500)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 11 Feb 2025 20:38:00 +0000 (20:38 +0000)
commite200f51ea46c7b5771172a3cecfff57dd8acc00e
tree516532ae3bb09a35c54d24ebabf733a01e6c5bc9
parentd55b072a9349a6098e1ef7b818a3d5fbe37708b1
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.
include/asterisk/channel.h
main/channel.c