]> 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)
committerSean Bright <sean@seanbright.com>
Tue, 11 Feb 2025 20:37:56 +0000 (20:37 +0000)
commit46017ea15bf5ee482dcc05ad44ffd2c6695d9281
treeb8bf51e895f117f112cd7828707a8f29e2c3e209
parent595739a21ca6a7899c8c8c6ec232fddf4b04f931
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