Skip to content

Commit

Permalink
Add error catch to editor client as well
Browse files Browse the repository at this point in the history
  • Loading branch information
helin24 committed Oct 2, 2024
1 parent 09799db commit 60bad2a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@ class DtdEditorClient extends EditorClient with AutoDisposeControllerMixin {
);
await Future.wait([
_dtd.streamListen('Service'),
_dtd.streamListen(editorServiceName),
_dtd.streamListen(editorStreamName).catchError((_) {
// Because we currently call streamListen in two places (here and
// ThemeManager) this can fail. It doesn't matter if this happens,
// however we should refactor this code to better support using the DTD
// connection in multiple places without them having to coordinate.
}),
]);
}

Expand Down

0 comments on commit 60bad2a

Please sign in to comment.