aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_meetme.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-30 17:33:37 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-30 17:33:37 +0000
commitb860cab1cc1343af236eb4fe9d8b49bbaa50fe9b (patch)
treecd6e01435f91257a3707ed50a5796ee22af5e34a /apps/app_meetme.c
parentf68b426cc5a96d589b653aca97dba778b4f5effe (diff)
Remove ourselves from the userlist a little bit earlier
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30835 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_meetme.c')
-rw-r--r--apps/app_meetme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index e8a664a53..6c6b2d3f4 100644
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -1730,12 +1730,12 @@ bailoutandtrynormal:
ast_update_realtime("meetme", "confno", conf->confno, "members", members, NULL);
if (confflags & CONFFLAG_MARKEDUSER)
conf->markedusers--;
+ /* Remove ourselves from the list */
+ AST_LIST_REMOVE(&conf->userlist, user, list);
if (AST_LIST_EMPTY(&conf->userlist)) {
/* close this one when no more users and no references*/
if (!conf->refcount)
conf_free(conf);
- } else {
- AST_LIST_REMOVE(&conf->userlist, user, list);
}
/* Return the number of seconds the user was in the conf */
snprintf(meetmesecs, sizeof(meetmesecs), "%d", (int) (time(NULL) - user->jointime));