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.
asterisk/patches/res_musiconhold-crash_15109...

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;
}