From 8bb86f679261593ed0d5d5c7b2b4fe1507fd0099 Mon Sep 17 00:00:00 2001 From: "nweiz@google.com" <nweiz@google.com> Date: Wed, 20 Aug 2014 21:09:09 +0000 Subject: [PATCH] Close servers for bin directories when precompiling executables. R=rnystrom@google.com BUG=20482 Review URL: https://codereview.chromium.org//491103002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge@39431 260f80e4-7a28-3924-810f-c04153c831b5 --- lib/src/entrypoint.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/src/entrypoint.dart b/lib/src/entrypoint.dart index 16b19a59..b580f494 100644 --- a/lib/src/entrypoint.dart +++ b/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(); + }); }); } -- GitLab