8000 Fix setMicrophoneMute() not awaitable (#1385) · InventYang/flutter-webrtc@08e0a98 · GitHub
[go: up one dir, main page]

Skip to content

Commit 08e0a98

Browse files
authored
Fix setMicrophoneMute() not awaitable (flutter-webrtc#1385)
* Fix setMicrophoneMuted() not awaitable setMicrophoneMuted() is async but didn't return a Future * Fix dart format
1 parent 52c889f commit 08e0a98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/helper.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ class Helper {
142142
return Future.value();
143143
}
144144

145-
static void setMicrophoneMute(bool mute, MediaStreamTrack track) async {
145+
static Future<void> setMicrophoneMute(
146+
bool mute, MediaStreamTrack track) async {
146147
if (track.kind != 'audio') {
147148
throw 'The is not an audio track => $track';
148149
}

0 commit comments

Comments
 (0)
0