Skip to content

Commit

Permalink
Update MIGRATION.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chipweinberger authored Jan 24, 2024
1 parent 77f827b commit 49f78f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ extension Scan on FlutterBluePlus {
onError: (e, stackTrace) => controller.addError(e, stackTrace),
);
Future scanComplete = FlutterBluePlus.isScanning.skip(1).where((e) => e == false).first;
FlutterBluePlus.startScan(
withServices: withServices,
timeout: timeout,
Expand All @@ -69,8 +71,6 @@ extension Scan on FlutterBluePlus {
androidUsesFineLocation: androidUsesFineLocation,
);
Future scanComplete = FlutterBluePlus.isScanning.where((e) => e == false).first;
scanComplete.whenComplete(() {
subscription.cancel();
controller.close();
Expand Down Expand Up @@ -209,4 +209,4 @@ If your app uses `startScan.removeIfGone`, or your app continually checks the va

## 1.29.0

* **[Breaking Change]** scanResults: do not clear results after `stopScan`. If you want results cleared, use `onScanResults` instead.
* **[Breaking Change]** scanResults: do not clear results after `stopScan`. If you want results cleared, use `onScanResults` instead.

0 comments on commit 49f78f7

Please sign in to comment.