Skip to content

Commit cc1c762

Browse files
committed
fix(lib): make stop an async method
1 parent 378237f commit cc1c762

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/apivideo_live_stream_controller.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ class ApiVideoLiveStreamController {
142142
}
143143

144144
/// Same as [stopStreaming] and [stopPreview]
145-
void stop() {
146-
stopStreaming();
147-
stopPreview();
145+
Future<void> stop() async {
146+
await stopStreaming();
147+
await stopPreview();
148148
}
149149

150150
/// Gets if live stream is streaming or not.

0 commit comments

Comments
 (0)