summaryrefslogtreecommitdiff
path: root/main/core_unreal.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2016-03-28 14:23:59 -0500
committerRichard Mudgett <rmudgett@digium.com>2016-03-30 16:26:36 -0500
commit7f53f1d89e18608d2b193bfcaace4eed9fb0ce0c (patch)
treeeeb7a96fc7c01c4032bcafee2d06c7e9dc06a698 /main/core_unreal.c
parente1fdb0a6da0287452837c25b1295baa30b5866ed (diff)
core_unreal.c: Add clarification comment about channel ref.
Change-Id: I0be0627260cd8d6b6c3cc345949dcfdf32eff1f3
Diffstat (limited to 'main/core_unreal.c')
-rw-r--r--main/core_unreal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/core_unreal.c b/main/core_unreal.c
index 028e371f6..fc311ec5d 100644
--- a/main/core_unreal.c
+++ b/main/core_unreal.c
@@ -808,9 +808,11 @@ int ast_unreal_channel_push_to_bridge(struct ast_channel *ast, struct ast_bridge
return -1;
}
+ /* The bridge thread now controls the chan ref from the ast_unreal_pvt */
ao2_lock(p);
ast_set_flag(p, AST_UNREAL_CARETAKER_THREAD);
ao2_unlock(p);
+
ast_channel_unref(chan);
return 0;