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

Unified Diff: runtime/observatory/lib/src/elements/debugger.dart

Issue 1456643002: Don't unsubscribe to streams we aren't subscribed to. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/elements/debugger.dart
diff --git a/runtime/observatory/lib/src/elements/debugger.dart b/runtime/observatory/lib/src/elements/debugger.dart
index d7973ea93124882c268e81aeed0fca4ce75fb1c8..f46458120ed20c19723775d3e352f7e3c4945c33 100644
--- a/runtime/observatory/lib/src/elements/debugger.dart
+++ b/runtime/observatory/lib/src/elements/debugger.dart
@@ -1914,6 +1914,7 @@ class DebuggerPageElement extends ObservatoryElement {
// TODO(turnidge): How do we want to handle this in general?
_stdoutSubscriptionFuture.catchError((e, st) {
Logger.root.info('Failed to subscribe to stdout: $e\n$st\n');
+ _stdoutSubscriptionFuture = null;
});
}
_stderrSubscriptionFuture =
@@ -1922,6 +1923,7 @@ class DebuggerPageElement extends ObservatoryElement {
// TODO(turnidge): How do we want to handle this in general?
_stderrSubscriptionFuture.catchError((e, st) {
Logger.root.info('Failed to subscribe to stderr: $e\n$st\n');
+ _stderrSubscriptionFuture = null;
});
}
_logSubscriptionFuture =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698