Fix misreverting from 177158.
authorJeff Peeler <jpeeler@digium.com>
Wed, 6 Jan 2010 20:37:18 +0000 (20:37 +0000)
committerJeff Peeler <jpeeler@digium.com>
Wed, 6 Jan 2010 20:37:18 +0000 (20:37 +0000)
(closes issue #15725)
Reported by: shanermn
Patches:
      v1-15725.patch uploaded by dimas (license 88)
Tested by: shanermn

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238181 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index 335e79f..d340ae1 100644 (file)
@@ -3032,7 +3032,7 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, struc
                                                   don't want to block, but we do want to at least *try*
                                                   to write out all the samples.
                                                 */
                                                   don't want to block, but we do want to at least *try*
                                                   to write out all the samples.
                                                 */
-                                               if (user->talking && !ast_test_flag64(confflags, CONFFLAG_OPTIMIZETALKER)) {
+                                               if (user->talking || !ast_test_flag64(confflags, CONFFLAG_OPTIMIZETALKER)) {
                                                        careful_write(fd, f->data.ptr, f->datalen, 0);
                                                }
                                        }
                                                        careful_write(fd, f->data.ptr, f->datalen, 0);
                                                }
                                        }