Avoid deadlock: don't try to lock the client proxy mutex from client channel handlers.
git-svn-id: http://voip.null.ro/svn/yate@4178 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
be498396b5
commit
2a3b9aa16a
|
@ -3137,10 +3137,8 @@ bool ClientChannel::setMedia(bool open, bool replace)
|
|||
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);
|
||||
}
|
||||
if (!ok && Client::self())
|
||||
Client::self()->addToLog("Failed to open media channel(s): " + id());
|
||||
return ok;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue