mirror of
https://github.com/asterisk/asterisk.git
synced 2026-04-22 05:50:19 +00:00
abstract_jb.c: Remove redundant timer check per static analysis.
While this check is technically unnecessary, it also was not harmful. The 2 other items mentioned in the linked issue are false positives and require no action. Resolves: #1417
This commit is contained in:
committed by
github-actions[bot]
parent
065c507ffc
commit
2ecdc84d07
@@ -966,7 +966,7 @@ static struct ast_frame *hook_event_cb(struct ast_channel *chan, struct ast_fram
|
||||
return frame;
|
||||
}
|
||||
|
||||
if (ast_channel_fdno(chan) == AST_JITTERBUFFER_FD && framedata->timer) {
|
||||
if (ast_channel_fdno(chan) == AST_JITTERBUFFER_FD) {
|
||||
if (ast_timer_ack(framedata->timer, 1) < 0) {
|
||||
ast_log(LOG_ERROR, "Failed to acknowledge timer in jitter buffer\n");
|
||||
return frame;
|
||||
|
||||
Reference in New Issue
Block a user