Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -279,8 +279,8 @@ public class MobileScannerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, | @@ -279,8 +279,8 @@ public class MobileScannerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, | ||
| 279 | do { | 279 | do { |
| 280 | self.toggleTorchInternal(.on) | 280 | self.toggleTorchInternal(.on) |
| 281 | } catch { | 281 | } catch { |
| 282 | - result(FlutterError(code: "MobileScanner", message: error.localizedDescription, details: nil)) | ||
| 283 | - return | 282 | + // If the torch could not be turned on, |
| 283 | + // continue the capture session. | ||
| 284 | } | 284 | } |
| 285 | } | 285 | } |
| 286 | 286 |
-
Please register or login to post a comment