Drop driver lock before displaying the media set failure message.

git-svn-id: http://yate.null.ro/svn/yate/trunk@2748 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2009-07-07 07:17:11 +00:00
parent 3db701bda5
commit 402fbf2d1f
1 changed files with 1 additions and 0 deletions

View File

@ -2684,6 +2684,7 @@ bool ClientChannel::setMedia(bool open, bool replace)
if (!(getSource() || m_muted))
Debug(this,DebugNote,"Failed to set data source [%p]",this);
bool ok = ((m_muted || getSource()) && getConsumer());
lock.drop();
if (!ok && Client::self()) {
String tmp = "Failed to open media channel(s)";
Client::self()->setStatusLocked(tmp);