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