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

Unified Diff: runtime/vm/service/client.dart

Issue 1338753004: Force disconnect all service clients when VM is shutting down (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « runtime/bin/vmservice/server.dart ('k') | runtime/vm/service/vmservice.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service/client.dart
diff --git a/runtime/vm/service/client.dart b/runtime/vm/service/client.dart
index 1ac2a23c6599195138fe76bef2761d586bd58bbd..279b4247b3199867f283daa65b61553ba5a1f3b4 100644
--- a/runtime/vm/service/client.dart
+++ b/runtime/vm/service/client.dart
@@ -15,6 +15,9 @@ abstract class Client {
service._addClient(this);
}
+ // Disconnects the client.
+ disconnect();
+
/// When implementing, call [close] when the network connection closes.
void close() {
service._removeClient(this);
« no previous file with comments | « runtime/bin/vmservice/server.dart ('k') | runtime/vm/service/vmservice.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698