Commit 9ea42f46 authored by Sylvain Berfini's avatar Sylvain Berfini 🐮
Browse files

Properly stops call recording when call is terminated

parent a19bdd2d
......@@ -1805,6 +1805,10 @@ LinphoneStatus MediaSessionPrivate::startUpdate (const string &subject) {
void MediaSessionPrivate::terminate () {
L_Q();
if (q->isRecording()) {
lInfo() << "Media session is being terminated, stop recording";
q->stopRecording();
}
q->getCore()->getPrivate()->getToneManager()->stop(q->getSharedFromThis());
stopStreams();
CallSessionPrivate::terminate();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment