mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-09 11:55:19 +00:00
abstract_jb.c: Remove timerfd from channel when disabling jitter buffer
Previously, the lingering timerfd would cause a tight loop if the channel enters a BridgeWait after the jitter buffer was disabled. Fixes: #1762
This commit is contained in:
committed by
Asterisk Development Team
parent
5cd88cb64d
commit
34153dc07c
@@ -1284,6 +1284,7 @@ void ast_jb_create_framehook(struct ast_channel *chan, struct ast_jb_conf *jb_co
|
||||
ast_framehook_detach(chan, *id);
|
||||
ast_channel_datastore_remove(chan, datastore);
|
||||
ast_datastore_free(datastore);
|
||||
ast_channel_set_fd(chan, AST_JITTERBUFFER_FD, -1);
|
||||
}
|
||||
ast_channel_unlock(chan);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user