[Asterisk-code-review] res calendar: Cleanup scheduler context at unload. (asterisk[11])

Joshua Colp asteriskteam at digium.com
Mon Jan 11 14:35:46 CST 2016


Joshua Colp has submitted this change and it was merged.

Change subject: res_calendar: Cleanup scheduler context at unload.
......................................................................


res_calendar: Cleanup scheduler context at unload.

ASTERISK-25679 #close

Change-Id: I839159bf6882cccc1b23494c7aa2bc2a2624613f
---
M res/res_calendar.c
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  Kevin Harwell: Looks good to me, but someone else must approve
  Anonymous Coward #1000019: Verified
  Joshua Colp: Looks good to me, approved



diff --git a/res/res_calendar.c b/res/res_calendar.c
index e418425..17b005c 100644
--- a/res/res_calendar.c
+++ b/res/res_calendar.c
@@ -1827,6 +1827,8 @@
 	ast_mutex_unlock(&refreshlock);
 	pthread_join(refresh_thread, NULL);
 
+	ast_sched_context_destroy(sched);
+
 	AST_LIST_LOCK(&techs);
 	AST_LIST_TRAVERSE_SAFE_BEGIN(&techs, tech, list) {
 		ast_unload_resource(tech->module, 0);

-- 
To view, visit https://gerrit.asterisk.org/1978
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I839159bf6882cccc1b23494c7aa2bc2a2624613f
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 11
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>



More information about the asterisk-code-review mailing list