diff --git a/lib/src/voip/call.dart b/lib/src/voip/call.dart index 9437ef7c..18949c4d 100644 --- a/lib/src/voip/call.dart +++ b/lib/src/voip/call.dart @@ -830,7 +830,7 @@ class CallSession { } if (callFeed.purpose == SDPStreamMetadataPurpose.Screenshare) { - stopMediaStream(callFeed.stream); + await stopMediaStream(callFeed.stream); } // Empty the array diff --git a/test/room_test.dart b/test/room_test.dart index a9149bcc..8fe18f5a 100644 --- a/test/room_test.dart +++ b/test/room_test.dart @@ -967,7 +967,8 @@ void main() { await call.sendCallCandidates(room, '1234', '4567', [], txid: '1234'); await call.sendSelectCallAnswer(room, '1234', 1234, '4567', '6789', txid: '1234'); - await call.sendCallReject(room, '1234', 1234, '4567', txid: '1234'); + await call.sendCallReject(room, '1234', 1234, '4567', 'busy', + txid: '1234'); await call.sendCallNegotiate(room, '1234', 1234, '4567', 'sdp', txid: '1234'); await call.sendHangupCall(room, '1234', '4567', 'user_hangup',