aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_mp3.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_mp3.c')
-rwxr-xr-xapps/app_mp3.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/app_mp3.c b/apps/app_mp3.c
index 95a2f194b..63f6546b7 100755
--- a/apps/app_mp3.c
+++ b/apps/app_mp3.c
@@ -218,8 +218,13 @@ static int mp3_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)