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

Unified Diff: runtime/bin/builtin.dart

Issue 200793006: Fix comments of previous commit. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin.dart
diff --git a/runtime/bin/builtin.dart b/runtime/bin/builtin.dart
index ab6eb07ff1a7e249fbb0a7ab366cd00208392c63..24d6de1754c5d03266c91011dd4ea0b2db753d36 100644
--- a/runtime/bin/builtin.dart
+++ b/runtime/bin/builtin.dart
@@ -84,7 +84,7 @@ void _makeHttpRequest(String uri) {
return request.close();
})
.then((HttpClientResponse response) {
- // Only create a ByteBuilder, if multiple chunks is received.
+ // Only create a ByteBuilder, if multiple chunks are received.
var bufferOrBuilder;
response.listen(
(data) {
@@ -102,6 +102,7 @@ void _makeHttpRequest(String uri) {
var data = bufferOrBuilder;
if (data is BytesBuilder) data = data.takeBytes();
_requestCompleted(data, response);
+ // Close the client to stop any timers currently held alive.
_client.close();
},
onError: _requestFailed);
« 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