Skip to content
Snippets Groups Projects
Commit 34457dd9 authored by Richard Mudgett's avatar Richard Mudgett
Browse files

core_unreal.c: Add clarification comment about channel ref.

Change-Id: I0be0627260cd8d6b6c3cc345949dcfdf32eff1f3
parent 23d2a561
No related branches found
No related tags found
No related merge requests found
...@@ -805,9 +805,11 @@ int ast_unreal_channel_push_to_bridge(struct ast_channel *ast, struct ast_bridge ...@@ -805,9 +805,11 @@ int ast_unreal_channel_push_to_bridge(struct ast_channel *ast, struct ast_bridge
return -1; return -1;
} }
/* The bridge thread now controls the chan ref from the ast_unreal_pvt */
ao2_lock(p); ao2_lock(p);
ast_set_flag(p, AST_UNREAL_CARETAKER_THREAD); ast_set_flag(p, AST_UNREAL_CARETAKER_THREAD);
ao2_unlock(p); ao2_unlock(p);
ast_channel_unref(chan); ast_channel_unref(chan);
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment