Skip to content

Commit 8acb0a4

Browse files
sigurdmCommit Queue
authored and
Commit Queue
committed
Shut down pub http client after running dartdev
Bug: #55289 Change-Id: I61548d0b223167b769a27ac6ab956c4fd42a7be6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/361364 Reviewed-by: Ben Konyi <[email protected]> Reviewed-by: Jonas Jensen <[email protected]> Commit-Queue: Sigurd Meldgaard <[email protected]>
1 parent 6de879e commit 8acb0a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/dartdev/bin/dartdev.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@
55
import 'dart:isolate';
66

77
import 'package:dartdev/dartdev.dart';
8+
import 'package:pub/src/http.dart';
89

910
/// The entry point for dartdev.
1011
Future<void> main(List<String> args, SendPort? port) async {
1112
await runDartdev(args, port);
13+
// TODO(https://github.com/dart-lang/pub/issues/4209). Handle this in a more
14+
// structured way.
15+
globalHttpClient.close();
1216
}

0 commit comments

Comments
 (0)