diff --git a/sdk/lib/_internal/pub/lib/src/entrypoint.dart b/sdk/lib/_internal/pub/lib/src/entrypoint.dart index 16b19a59259..b580f49444f 100644 --- a/sdk/lib/_internal/pub/lib/src/entrypoint.dart +++ b/sdk/lib/_internal/pub/lib/src/entrypoint.dart @@ -254,7 +254,11 @@ class Entrypoint { result.stderr.join('\n')); } }); - })); + })).whenComplete(() { + // Don't return this future, since we have no need to wait for the + // server to fully shut down. + server.close(); + }); }); }