diff options
author | Alfred E. Heggestad <aeh@db.org> | 2016-06-11 21:29:28 +0200 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2016-06-11 21:29:28 +0200 |
commit | 59bddfd76ae2c9be19484b4a9213d747b83420ad (patch) | |
tree | 37bbd1a308659bcb67e0b9bb9846991a37b36a9a /src | |
parent | c02880777a5eafbcc57949928bfb2ac50c3c00b8 (diff) |
ua: move module_app_unload to ua_close (fixes #133)
Diffstat (limited to 'src')
-rw-r--r-- | src/ua.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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(); } |