Test if locking of the H.323 connection succeeded (fails during cleanup).

git-svn-id: http://voip.null.ro/svn/yate@4294 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2011-04-14 08:18:35 +00:00
parent b1cba4d938
commit 19c82b5bd6

View file

@ -1254,7 +1254,8 @@ bool YateH323Connection::adjustCapabilities()
// remote has a list of supported codecs - remove unsupported capabilities
bool nocodecs = true;
bool changed = false;
Lock();
if (!Lock())
return false;
for (int i = 0; i < localCapabilities.GetSize(); i++) {
const char* format = 0;
String fname;