Skip to content

Commit ea69ae6

Browse files
make sure the session terminates (#485)
Co-authored-by: Victor Uvarov <[email protected]>
1 parent 9b9bd5f commit ea69ae6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/sip_ua_helper.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ class Call {
554554
assert(_session != null, 'ERROR(hangup): rtc session is invalid!');
555555
if (peerConnection != null) {
556556
for (MediaStream? stream in peerConnection!.getLocalStreams()) {
557-
if (stream == null) return;
557+
if (stream == null) continue;
558558
logger.d(
559559
'Stopping local stream with tracks: ${stream.getTracks().length}');
560560
for (MediaStreamTrack track in stream.getTracks()) {
@@ -563,7 +563,7 @@ class Call {
563563
}
564564
}
565565
for (MediaStream? stream in peerConnection!.getRemoteStreams()) {
566-
if (stream == null) return;
566+
if (stream == null) continue;
567567
logger.d(
568568
'Stopping remote stream with tracks: ${stream.getTracks().length}');
569569
for (MediaStreamTrack track in stream.getTracks()) {

0 commit comments

Comments
 (0)