Index: sdk/lib/io/websocket_impl.dart |
diff --git a/sdk/lib/io/websocket_impl.dart b/sdk/lib/io/websocket_impl.dart |
index 3a57c39ce8238cfd948a155ee4ce59889034672a..b13709caa51b84465eabc57361cb077171f787e0 100644 |
--- a/sdk/lib/io/websocket_impl.dart |
+++ b/sdk/lib/io/websocket_impl.dart |
@@ -866,7 +866,7 @@ class _WebSocketImpl extends Stream implements WebSocket { |
_outCloseReason = reason; |
_writeClosed = true; |
} |
- if (!_sink._isBound) _sink.close(); |
+ if (!(_sink as _StreamSinkImpl)._isBound) _sink.close(); |
return _sink.done; |
} |