Skip to content

Commit 401dcd2

Browse files
committed
Fix test failure
1 parent 3014f48 commit 401dcd2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dwds/lib/src/services/debug_service.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ abstract class DebugService<T extends ProxyService> {
4040
/// The URI pointing to the VM service implementation hosted by the [DebugService].
4141
String get uri => _uri.toString();
4242

43-
Uri get _uri {
43+
Uri get _uri => _cachedUri ??= () {
4444
final dds = _dds;
4545
if (ddsConfig.enable && dds != null) {
4646
return useSse ? dds.sseUri : dds.wsUri;
@@ -58,8 +58,9 @@ abstract class DebugService<T extends ProxyService> {
5858
port: _server.port,
5959
path: authToken,
6060
);
61-
}
61+
}();
6262

63+
Uri? _cachedUri;
6364
String? _ddsUri;
6465

6566
late final T proxyService;

0 commit comments

Comments
 (0)