Skip to content

Commit

Permalink
fix(lib): make stop an async method
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Feb 15, 2024
1 parent 378237f commit cc1c762
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/apivideo_live_stream_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ class ApiVideoLiveStreamController {
}

/// Same as [stopStreaming] and [stopPreview]
void stop() {
stopStreaming();
stopPreview();
Future<void> stop() async {
await stopStreaming();
await stopPreview();
}

/// Gets if live stream is streaming or not.
Expand Down

0 comments on commit cc1c762

Please sign in to comment.