Chromium Code Reviews| Index: sdk/lib/io/http_parser.dart |
| diff --git a/sdk/lib/io/http_parser.dart b/sdk/lib/io/http_parser.dart |
| index 058bb670880450685e49341ee338282d788dcadb..498cd021f9c63fbae7e389d125c48053ac311b9e 100644 |
| --- a/sdk/lib/io/http_parser.dart |
| +++ b/sdk/lib/io/http_parser.dart |
| @@ -210,9 +210,8 @@ class _HttpParser |
| _pauseStateChanged(); |
| }, |
| onCancel: () { |
| - try { |
| + if (_socketSubscription != null) { |
| _socketSubscription.cancel(); |
| - } catch (e) { |
| } |
| }); |
| _reset(); |