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

App shows error if user switches printer while current printer is trying to connect #174

Closed
Clon1998 opened this issue Jun 2, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Clon1998
Copy link
Owner

Clon1998 commented Jun 2, 2023

If a user manages to switch the printer, while the currently selected one is still fetching (Either, Jrpc, Or the Klippy/Printer) a Stream has been listed error is thrown.

I/flutter ( 6995): Bad state: Stream has already been listened to.
I/flutter ( 6995): #0   _StreamController._subscribe (dart:async/stream_controller.dart:676:7)
I/flutter ( 6995): #1   _ControllerStream._createSubscription (dart:async/stream_controller.dart:827:19)
I/flutter ( 6995): #2   _StreamImpl.listen (dart:async/stream_impl.dart:471:9)
I/flutter ( 6995): #3   _AsBroadcastStream.listen (dart:async/stream_impl.dart:738:31)
I/flutter ( 6995): #4   _extension#0.lastCancelable (package:riverpod/src/async_notifier/base.dart:542:20)
I/flutter ( 6995): #5   FutureHandlerProviderElementMixin.handleStream.<anonymous closure> (package:riverpod/src/async_notifier/base.dart:296:14)
I/flutter ( 6995): #6   FutureHandlerProviderElementMixin._handleAsync (package:riverpod/src/async_notifier/base.dart:370:47)
I/flutter ( 6995): #7   FutureHandlerProviderElementMixin.handleStream (package:riverpod/src/async_notifier/base.dart:285:5)
I/flutter ( 6995): ⛔ Error in Widget
@Clon1998 Clon1998 added the bug Something isn't working label Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant