Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad state: Future already completed #51

Open
niktses opened this issue Jan 13, 2021 · 0 comments · May be fixed by #117
Open

Bad state: Future already completed #51

niktses opened this issue Jan 13, 2021 · 0 comments · May be fixed by #117

Comments

@niktses
Copy link

niktses commented Jan 13, 2021

Printing throws this exception:

Bad state: Future already completed
I/flutter ( 9568): #0 _AsyncCompleter.complete (dart:async/future_impl.dart:43:31)
I/flutter ( 9568): #1 PrinterBluetoothManager.writeBytes. (package:esc_pos_bluetooth/src/printer_bluetooth_manager.dart:117:23)
I/flutter ( 9568):
I/flutter ( 9568): #2 PrinterBluetoothManager.writeBytes. (package:esc_pos_bluetooth/src/printer_bluetooth_manager.dart)
I/flutter ( 9568): #3 _rootRunUnary (dart:async/zone.dart:1198:47)
I/flutter ( 9568): #4 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
I/flutter ( 9568): #5 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)
I/flutter ( 9568): #6 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
I/flutter ( 9568): #7 _DelayedData.perform (dart:async/stream_impl.dart:611:14)
I/flutter ( 9568): #8 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:730:11)
I/flutter ( 9568): #9 _PendingEvents.schedule. (dart:async/stream_impl.dart:687:7)
I/flutter ( 9568): #10 _rootRun (dart:async/zone.dart:1182:47)
I/flutter ( 9568): #11 _CustomZone.run (dart:async/zone.dart:1093:19)
I/flutter ( 9568): #12 _CustomZone.runGuarded (dart:async/zone.dart:997:7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant