The bridge uniqueid is available for softmix destructor.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@390956 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2013-06-08 02:10:47 +00:00
parent 6a013e3a07
commit 9895fecf58

View File

@@ -1083,11 +1083,7 @@ static void softmix_bridge_destroy(struct ast_bridge *bridge)
softmix_data->thread = AST_PTHREADT_NULL;
ast_mutex_unlock(&softmix_data->lock);
if (thread != AST_PTHREADT_NULL) {
/*
* We cannot use bridge->uniqueid in the message because the
* bridge pointer is likely a dummy from a deferred destruction.
*/
ast_debug(1, "Waiting for mixing thread to die.\n");
ast_debug(1, "Bridge %s: Waiting for mixing thread to die.\n", bridge->uniqueid);
pthread_join(thread, NULL);
}