]> git.ipfire.org Git - thirdparty/asterisk.git/commit
apps/app_mixmonitor: Move Test Event for MIXMONITOR_END to after it finishes
authorMatthew Jordan <mjordan@digium.com>
Sun, 15 Feb 2015 00:31:55 +0000 (00:31 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sun, 15 Feb 2015 00:31:55 +0000 (00:31 +0000)
commita1ed030c5cc1b4f0e0b66f5906a2e8b4741350ef
tree178b16f87593be8ca8f8f935f5e39a57bf0a620f
parente5d1dbafe0dddbb361f88709f42543e90452bdd1
apps/app_mixmonitor: Move Test Event for MIXMONITOR_END to after it finishes

The Test Event for MIXMONITOR_END - which signals that a MixMonitor has
completed - technically fired before the filestream was closed. If a test
used this to trigger a condition to verify that the file was written, it
could result in a race condition where the file size would not be what the
test expected.

Luckily, no tests were using this (although they should have been). Since the
test event needed to be moved after the point where the MixMonitor autochan has
been destroyed, the test event no longer emits the channel name. Luckily,
nothing needs it.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@431788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_mixmonitor.c