Also keep the ChanAssistList locked while adding a new assist to the list.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2850 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
3cde3a5bc0
commit
9ed21bbc16
|
@ -43,7 +43,9 @@ bool ChanAssistList::received(Message& msg, int id)
|
|||
}
|
||||
ca = create(msg,*chanId);
|
||||
if (ca) {
|
||||
lock();
|
||||
m_calls.append(ca);
|
||||
unlock();
|
||||
ca->msgStartup(msg);
|
||||
}
|
||||
return false;
|
||||
|
@ -62,7 +64,9 @@ bool ChanAssistList::received(Message& msg, int id)
|
|||
}
|
||||
ca = create(msg,*chanId);
|
||||
if (ca) {
|
||||
lock();
|
||||
m_calls.append(ca);
|
||||
unlock();
|
||||
ca->msgStartup(msg);
|
||||
ca->msgExecute(msg);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue