mirror of https://github.com/sipwise/asterisk.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
347 B
15 lines
347 B
--- res/res_musiconhold.c (revisión: 201599)
|
|
+++ res/res_musiconhold.c (revisión: 201600)
|
|
@@ -1103,9 +1103,10 @@
|
|
while ((member = AST_LIST_REMOVE_HEAD(&class->members, list))) {
|
|
free(member);
|
|
}
|
|
-
|
|
+
|
|
if (class->thread) {
|
|
pthread_cancel(class->thread);
|
|
+ pthread_join(class->thread, NULL);
|
|
class->thread = AST_PTHREADT_NULL;
|
|
}
|
|
|