From 62cd4e78fbecc0075a7d6430739baa8e4fc71393 Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Sat, 17 Sep 2022 00:19:21 +0800 Subject: [PATCH] chore: fix analyzer error. --- lib/src/voip/call.dart | 2 +- test/room_test.dart | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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',