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);
|
Debug(this,DebugNote,"Failed to set data source [%p]",this);
|
||||||
bool ok = ((m_muted || getSource()) && getConsumer());
|
bool ok = ((m_muted || getSource()) && getConsumer());
|
||||||
lock.drop();
|
lock.drop();
|
||||||
if (!ok && Client::self()) {
|
if (!ok && Client::self())
|
||||||
String tmp = "Failed to open media channel(s)";
|
Client::self()->addToLog("Failed to open media channel(s): " + id());
|
||||||
Client::self()->setStatusLocked(tmp);
|
|
||||||
}
|
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue