| Index: sdk/lib/io/http_impl.dart
|
| diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
|
| index 7e16e5fe4662e3a908d7faf1c39a9227a049bb89..68c34039457ae6cce98d3348ceeab8f48c395e4b 100644
|
| --- a/sdk/lib/io/http_impl.dart
|
| +++ b/sdk/lib/io/http_impl.dart
|
| @@ -562,7 +562,9 @@ class _HttpOutboundConsumer implements StreamConsumer {
|
|
|
| void _cancel() {
|
| if (_subscription != null) {
|
| - _subscription.cancel();
|
| + StreamSubscription subscription = _subscription;
|
| + _subscription = null;
|
| + subscription.cancel();
|
| }
|
| }
|
|
|
|
|