| Index: runtime/bin/socket_patch.dart
|
| diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart
|
| index 7a4694b428eac52728a8574d64ca94200653e81c..4fffbf7681da5b896221836d310aa03aa98cb514 100644
|
| --- a/runtime/bin/socket_patch.dart
|
| +++ b/runtime/bin/socket_patch.dart
|
| @@ -484,7 +484,9 @@ class _NativeSocket extends NativeFieldWrapperClass1 {
|
| continue;
|
| }
|
| if (i == ERROR_EVENT) {
|
| - reportError(nativeGetError(), "");
|
| + if (!isClosing) {
|
| + reportError(nativeGetError(), "");
|
| + }
|
| } else if (!isClosed) {
|
| // If the connection is closed right after it's accepted, there's a
|
| // chance the close-handler is not set.
|
|
|