Skip to content

Commit

Permalink
Update flutter_blue.dart
Browse files Browse the repository at this point in the history
Removed exception
  • Loading branch information
blbhargav authored May 7, 2024
1 parent 7c7a86c commit d333255
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/flutter_blue.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ class FlutterBlue {
..serviceUuids.addAll(withServices.map((g) => g.toString()).toList());

if (_isScanning.value == true) {
throw Exception('Another scan is already in progress.');
print("You called scan again while a scan was already in progress.\n Clearing scan result list and starting a new scan.");
_scanResults.add(<ScanResult>[]);
//throw Exception('Another scan is already in progress.');
}

// Emit to isScanning
Expand Down

0 comments on commit d333255

Please sign in to comment.