summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSean Bright <sean.bright@gmail.com>2017-09-13 15:14:25 -0400
committerSean Bright <sean.bright@gmail.com>2017-09-15 14:45:57 -0500
commit5075cc8eedbc2d4b9d8aa4a5b06d7f53a38050a2 (patch)
tree02b7c928381f7cc8a943899eb57b262809c90a52 /include
parent14109355f3a2cf1f5dbf86d67e282280d0596076 (diff)
res_calendar: On reload, update all configuration
This changes the behavior of res_calendar to drop all existing calendars and re-create them whenever a reload is done. The Calendar API provides no way for configuration information to be pushed down to calendar 'techs' so updated settings would not take affect until a module unload/load was done or Asterisk was restarted. Asterisk 15+ already has a configuration option 'fetch_again_at_reload' that performs a similar function. Also fix a tiny memory leak in res_calendar_caldav while we're at it. ASTERISK-25524 #close Reported by: Jesper Change-Id: Ib0f8057642e9d471960f1a79fd42e5a3ce587d3b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/calendar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/calendar.h b/include/asterisk/calendar.h
index da4af01ef..57140bae2 100644
--- a/include/asterisk/calendar.h
+++ b/include/asterisk/calendar.h
@@ -133,7 +133,7 @@ struct ast_calendar {
pthread_t thread; /*!< The thread that the calendar is loaded/updated in */
ast_cond_t unload;
int unloading:1;
- int pending_deletion:1;
+ int pending_deletion:1; /*!< No longer used */
struct ao2_container *events; /*!< The events that are known at this time */
};