summaryrefslogtreecommitdiff
path: root/apps/app_math.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_math.c')
-rwxr-xr-xapps/app_math.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_math.c b/apps/app_math.c
index 201882aad..225c929df 100755
--- a/apps/app_math.c
+++ b/apps/app_math.c
@@ -258,17 +258,17 @@ static int math_exec(struct ast_channel *chan, void *data)
int unload_module(void)
{
int res;
+
+ res = ast_unregister_application(app_math);
+
STANDARD_HANGUP_LOCALUSERS;
- res = ast_unregister_application(app_math);
return res;
}
int load_module(void)
{
- int res;
- res = ast_register_application(app_math, math_exec, math_synopsis, math_descrip);
- return res;
+ return ast_register_application(app_math, math_exec, math_synopsis, math_descrip);
}
char *description(void)