Fixed bug: lock mutex to reset media when processing received BYE.

git-svn-id: http://voip.null.ro/svn/yate@5668 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2013-10-17 14:23:55 +00:00
parent 77246079a6
commit 2de3403cc9
1 changed files with 2 additions and 0 deletions

View File

@ -6657,7 +6657,9 @@ void YateSIPConnection::doBye(SIPTransaction* t)
paramMutex().unlock();
}
}
Lock mylock(driver());
setMedia(0);
mylock.drop();
SIPMessage* m = new SIPMessage(t->initialMessage(),200);
paramMutex().lock();
copySipHeaders(parameters(),*msg);