From 9b2bb28f27e247c4df49d4a9987ee6cfb8dfadd5 Mon Sep 17 00:00:00 2001
From: Aline Gondim Santos <aline.gondimsantos@savoirfairelinux.com>
Date: Wed, 19 Oct 2022 12:06:24 -0300
Subject: [PATCH] conference: correctly remove peer if crashed

Change-Id: I2c64b42dd7ad290dede7d7633eacc6bc20ed95ea
GitLab: #779
---
 src/sip/sipcall.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/sip/sipcall.cpp b/src/sip/sipcall.cpp
index 08d07f1d9a..170a015c55 100644
--- a/src/sip/sipcall.cpp
+++ b/src/sip/sipcall.cpp
@@ -494,6 +494,7 @@ SIPCall::setSipTransport(const std::shared_ptr<SipTransport>& transport,
                     JAMI_WARN("[call:%s] Ending call because underlying SIP transport was closed",
                               this_->getCallId().c_str());
                     this_->stopAllMedia();
+                    this_->detachAudioFromConference();
                     this_->onFailure(ECONNRESET);
                 }
             }
-- 
GitLab