summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-06-11 12:18:45 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-06-11 12:18:45 +0200
commit90a65c8be70ef7ccca5fee3026e76b0384643657 (patch)
tree9917990b3ca13e7ad72308a009815e993ec6391b
parent045024ee2753c161eedf7f3230631a5d9604ff4c (diff)
presence: define the SHUTDOWN_DELAY value as enum
-rw-r--r--modules/presence/subscriber.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/presence/subscriber.c b/modules/presence/subscriber.c
index 6e4b2e2..baf0b0c 100644
--- a/modules/presence/subscriber.c
+++ b/modules/presence/subscriber.c
@@ -17,6 +17,11 @@
*/
+enum {
+ SHUTDOWN_DELAY = 500 /**< Delay before un-registering [ms] */
+};
+
+
struct presence {
struct le le;
struct sipsub *sub;
@@ -323,7 +328,8 @@ void subscriber_close_all(void)
pres->shutdown = true;
if (pres->sub) {
pres->sub = mem_deref(pres->sub);
- tmr_start(&pres->tmr, 500, deref_handler, pres);
+ tmr_start(&pres->tmr, SHUTDOWN_DELAY,
+ deref_handler, pres);
}
else
mem_deref(pres);