Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/pubserve/PubServe.java

Issue 336013003: Version 1.5.0-dev.4.14 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/pubserve/PubServe.java
===================================================================
--- dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/pubserve/PubServe.java (revision 37358)
+++ dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/pubserve/PubServe.java (working copy)
@@ -136,6 +136,17 @@
}
/**
+ * Sends an exit on close command to pub, indicating pub serve should shut down when connection is
+ * lost.
+ *
+ * @throws IOException
+ */
+ void sendExitOnCloseCommand() throws IOException {
+ PubCommands command = pubConnection.getCommands();
+ command.exitOnClose();
+ }
+
+ /**
* Send a urlToAssetId command to the current pub serve
*
* @param url
@@ -227,7 +238,7 @@
});
pubConnection.connect();
-
+ sendExitOnCloseCommand();
}
private void copyStream(InputStream in, StringBuilder stringBuilder, boolean toConsole) {

Powered by Google App Engine
This is Rietveld 408576698