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:
paulc 2009-09-21 14:29:52 +00:00
parent 3cde3a5bc0
commit 9ed21bbc16
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}