mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
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:
@@ -1083,11 +1083,7 @@ static void softmix_bridge_destroy(struct ast_bridge *bridge)
|
|||||||
softmix_data->thread = AST_PTHREADT_NULL;
|
softmix_data->thread = AST_PTHREADT_NULL;
|
||||||
ast_mutex_unlock(&softmix_data->lock);
|
ast_mutex_unlock(&softmix_data->lock);
|
||||||
if (thread != AST_PTHREADT_NULL) {
|
if (thread != AST_PTHREADT_NULL) {
|
||||||
/*
|
ast_debug(1, "Bridge %s: Waiting for mixing thread to die.\n", bridge->uniqueid);
|
||||||
* 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");
|
|
||||||
pthread_join(thread, NULL);
|
pthread_join(thread, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user