diff options
Diffstat (limited to 'apps/app_sendtext.c')
-rwxr-xr-x | apps/app_sendtext.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/app_sendtext.c b/apps/app_sendtext.c index 36ab85c9a..c33561af2 100755 --- a/apps/app_sendtext.c +++ b/apps/app_sendtext.c @@ -98,9 +98,13 @@ static int sendtext_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) |