]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
core_unreal.c: Add clarification comment about channel ref. 00/2500/1
authorRichard Mudgett <rmudgett@digium.com>
Mon, 28 Mar 2016 19:23:59 +0000 (14:23 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 30 Mar 2016 21:26:36 +0000 (16:26 -0500)
Change-Id: I0be0627260cd8d6b6c3cc345949dcfdf32eff1f3

main/core_unreal.c

index 028e371f61a5180c75b530dc061f1b628c6a68a1..fc311ec5d3fae095d46dcff633d1a2cbe2c8733a 100644 (file)
@@ -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;