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