aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_meetme.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-02-01 20:05:30 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-02-01 20:05:30 +0000
commit2d18738a6fa8374d4525a25f3140a6c26a811c9e (patch)
treeb9dc74ad799dcb5a0e884b3d43d385304cda91f3 /apps/app_meetme.c
parentef8a95ff411f5414cb9ae9d86d55bcfd080da0f2 (diff)
Fix proper cleanup (bug #3481)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4945 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_meetme.c')
-rwxr-xr-xapps/app_meetme.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index 6f003f7af..e470b3975 100755
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -1108,14 +1108,15 @@ zapretry:
if (!(confflags & CONFFLAG_QUIET) && !(confflags & CONFFLAG_MONITOR) && !(confflags & CONFFLAG_ADMIN))
conf_play(conf, LEAVE);
- if (!(confflags & CONFFLAG_QUIET) && (confflags & CONFFLAG_INTROUSER) && conf->users > 1) {
- if (conf->chan && ast_fileexists(user->namerecloc, NULL, NULL)) {
- if (!ast_streamfile(conf->chan, user->namerecloc, chan->language))
- ast_waitstream(conf->chan, "");
- if (!ast_streamfile(conf->chan, "conf-hasleft", chan->language))
- ast_waitstream(conf->chan, "");
+ if (!(confflags & CONFFLAG_QUIET) && (confflags & CONFFLAG_INTROUSER)) {
+ if (ast_fileexists(user->namerecloc, NULL, NULL)) {
+ if ((conf->chan) && (conf->users > 1)) {
+ if (!ast_streamfile(conf->chan, user->namerecloc, chan->language))
+ ast_waitstream(conf->chan, "");
+ if (!ast_streamfile(conf->chan, "conf-hasleft", chan->language))
+ ast_waitstream(conf->chan, "");
+ }
ast_filedelete(user->namerecloc, NULL);
-
}
}
ast_mutex_unlock(&conflock);