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

WebSocket closed after editing printer! #8

Closed
Clon1998 opened this issue Aug 18, 2021 · 1 comment
Closed

WebSocket closed after editing printer! #8

Clon1998 opened this issue Aug 18, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Clon1998
Copy link
Owner

After editing the current printer it seems like the WebSocket closes and the UI does not rebuild correctly to accommodate for PrinterSetting changes.


======== Exception caught by foundation library ====================================================
The following StateError was thrown while dispatching notifications for RefreshNotifier<RefreshStatus>:
Bad state: StreamSink is closed

When the exception was thrown, this was the stack: 
#0      _StreamSinkImpl.add (dart:_http/http_impl.dart:903:7)
#1      _WebSocketImpl.add (dart:_http/websocket_impl.dart:1223:11)
#2      DelegatingStreamSink.add (package:async/src/delegate/stream_sink.dart:35:11)
#3      WebSocketWrapper.send (package:mobileraker/WebSocket.dart:108:20)
#4      WebSocketWrapper.sendObject (package:mobileraker/WebSocket.dart:114:5)
...
The RefreshNotifier<RefreshStatus> sending notification was: RefreshNotifier<RefreshStatus>#450b4(RefreshStatus.refreshing)
====================================================================================================
@Clon1998 Clon1998 added the bug Something isn't working label Aug 18, 2021
@Clon1998 Clon1998 self-assigned this Aug 18, 2021
@Clon1998
Copy link
Owner Author

Fixed in 76d1691

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