aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_lookupcidname.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_lookupcidname.c')
-rwxr-xr-xapps/app_lookupcidname.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/app_lookupcidname.c b/apps/app_lookupcidname.c
index cc9db230d..a2ce8b4f8 100755
--- a/apps/app_lookupcidname.c
+++ b/apps/app_lookupcidname.c
@@ -81,8 +81,13 @@ lookupcidname_exec (struct ast_channel *chan, void *data)
int
unload_module (void)
{
- STANDARD_HANGUP_LOCALUSERS;
- return ast_unregister_application (app);
+ int res;
+
+ res = ast_unregister_application (app);
+
+ STANDARD_HANGUP_LOCALUSERS;
+
+ return res;
}
int