diff options
Diffstat (limited to 'apps/app_exec.c')
-rwxr-xr-x | apps/app_exec.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/app_exec.c b/apps/app_exec.c index a58baeaa1..4b277cf3b 100755 --- a/apps/app_exec.c +++ b/apps/app_exec.c @@ -100,8 +100,13 @@ static int exec_exec(struct ast_channel *chan, void *data) int unload_module(void) { + int res; + + res = ast_unregister_application(app_exec); + STANDARD_HANGUP_LOCALUSERS; - return ast_unregister_application(app_exec); + + return res; } int load_module(void) |