mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-06 21:09:47 +00:00
Merge "res_calendar: Cleanup scheduler context at unload." into 13
This commit is contained in:
@@ -1853,6 +1853,8 @@ static int unload_module(void)
|
|||||||
ast_mutex_unlock(&refreshlock);
|
ast_mutex_unlock(&refreshlock);
|
||||||
pthread_join(refresh_thread, NULL);
|
pthread_join(refresh_thread, NULL);
|
||||||
|
|
||||||
|
ast_sched_context_destroy(sched);
|
||||||
|
|
||||||
AST_LIST_LOCK(&techs);
|
AST_LIST_LOCK(&techs);
|
||||||
AST_LIST_TRAVERSE_SAFE_BEGIN(&techs, tech, list) {
|
AST_LIST_TRAVERSE_SAFE_BEGIN(&techs, tech, list) {
|
||||||
ast_unload_resource(tech->module, 0);
|
ast_unload_resource(tech->module, 0);
|
||||||
|
Reference in New Issue
Block a user