mirror of
https://github.com/dart-lang/sdk
synced 2024-09-22 20:23:41 +00:00
Use 'eagerError' on Future:wait in HTTP, after Futute:wait change.
BUG= Review URL: https://codereview.chromium.org//78083002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30451 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
f30972c783
commit
d4345e60f2
|
@ -940,8 +940,8 @@ class _HttpClientRequest extends _HttpOutboundMessage<HttpClientResponse>
|
|||
|
||||
Future<HttpClientResponse> get done {
|
||||
if (_response == null) {
|
||||
_response = Future.wait([_responseCompleter.future,
|
||||
super.done])
|
||||
_response = Future.wait([_responseCompleter.future, super.done],
|
||||
eagerError: true)
|
||||
.then((list) => list[0]);
|
||||
}
|
||||
return _response;
|
||||
|
|
Loading…
Reference in a new issue