From 3135a5e01fde1406bfa1b0533b4b93b7c765a47f Mon Sep 17 00:00:00 2001 From: Jeremy McNamara Date: Sun, 11 Jan 2004 08:07:23 +0000 Subject: [PATCH] Fix dynamic user count, Take 4 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1936 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_meetme.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/app_meetme.c b/apps/app_meetme.c index 5975e33b28..21f3fb9e7a 100755 --- a/apps/app_meetme.c +++ b/apps/app_meetme.c @@ -191,8 +191,6 @@ static struct ast_conference *build_conf(char *confno, char *pin, int make, int ast_log(LOG_WARNING, "Out of memory\n"); } cnfout: - if (cnf && (make || dynamic)) - cnf->users++; ast_mutex_unlock(&conflock); return cnf; } @@ -266,6 +264,7 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c char __buf[CONF_SIZE + AST_FRIENDLY_OFFSET]; char *buf = __buf + AST_FRIENDLY_OFFSET; + conf->users++; if (!(confflags & CONFFLAG_QUIET) && conf->users == 1) { if (!ast_streamfile(chan, "conf-onlyperson", chan->language)) ast_waitstream(chan, "");