We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1246e5 commit 7df1f30Copy full SHA for 7df1f30
1 file changed
packages/devtools_app_shared/lib/src/service/dtd_manager.dart
@@ -160,8 +160,12 @@ class DTDManager {
160
// If a connection drops (and we hadn't disabled auto-reconnect, such
161
// as by explicitly calling disconnect/dispose), we should attempt to
162
// reconnect.
163
- unawaited(connection.done.then(
164
- (_) => _reconnectAfterDroppedConnection(uri, onError: onError)));
+ unawaited(connection.done
+ .then((_) => _reconnectAfterDroppedConnection(uri, onError: onError))
165
+ .catchError((_) {
166
+ // TODO(dantup): Create a devtools_app_shared version of safeUnawaited.
167
+ // https://github.com/flutter/devtools/pull/9587#discussion_r2624306047
168
+ }));
169
} catch (e, st) {
170
onError?.call(e, st);
171
}
0 commit comments