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

Unified Diff: lib/src/runner/browser/static/host.dart

Issue 1087693002: Don't double-complete in host.dart. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 8 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 | « no previous file | lib/src/runner/browser/static/host.dart.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/browser/static/host.dart
diff --git a/lib/src/runner/browser/static/host.dart b/lib/src/runner/browser/static/host.dart
index 8f6d6154e4feca2d73d63b5fc238564895760618..8d9a1cfa09e59845978200504a66446387485bb4 100644
--- a/lib/src/runner/browser/static/host.dart
+++ b/lib/src/runner/browser/static/host.dart
@@ -126,7 +126,7 @@ StreamChannel _connectToIframe(String url) {
message.stopPropagation();
inputController.add(message.data["data"]);
- readyCompleter.complete();
+ if (!readyCompleter.isCompleted) readyCompleter.complete();
});
outputController.stream.listen((message) {
« no previous file with comments | « no previous file | lib/src/runner/browser/static/host.dart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698