aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_eval.c')
-rwxr-xr-xapps/app_eval.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/app_eval.c b/apps/app_eval.c
index 6b0f612e7..0b0f3b28a 100755
--- a/apps/app_eval.c
+++ b/apps/app_eval.c
@@ -93,8 +93,13 @@ static int eval_exec(struct ast_channel *chan, void *data)
int unload_module(void)
{
+ int res;
+
+ res = ast_unregister_application(app_eval);
+
STANDARD_HANGUP_LOCALUSERS;
- return ast_unregister_application(app_eval);
+
+ return res;
}
int load_module(void)