summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-06-11 21:29:28 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-06-11 21:29:28 +0200
commit59bddfd76ae2c9be19484b4a9213d747b83420ad (patch)
tree37bbd1a308659bcb67e0b9bb9846991a37b36a9a /src
parentc02880777a5eafbcc57949928bfb2ac50c3c00b8 (diff)
ua: move module_app_unload to ua_close (fixes #133)
Diffstat (limited to 'src')
-rw-r--r--src/ua.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ua.c b/src/ua.c
index 5ca8367..46b63b7 100644
--- a/src/ua.c
+++ b/src/ua.c
@@ -100,7 +100,6 @@ static void exit_handler(void *arg)
ua_event(NULL, UA_EVENT_EXIT, NULL, NULL);
debug("ua: sip-stack exit\n");
- module_app_unload();
if (uag.exith)
uag.exith(uag.arg);
@@ -1400,6 +1399,9 @@ void ua_close(void)
list_flush(&uag.ual);
list_flush(&uag.ehl);
+
+ /* note: must be done before mod_close() */
+ module_app_unload();
}