Index: sdk/lib/io/secure_server_socket.dart |
diff --git a/sdk/lib/io/secure_server_socket.dart b/sdk/lib/io/secure_server_socket.dart |
index bcbc731d4e72006b281e1a45ec735c9541840b4b..166b0f2ea8ce4340a8ff3d60a40cde10cdc96417 100644 |
--- a/sdk/lib/io/secure_server_socket.dart |
+++ b/sdk/lib/io/secure_server_socket.dart |
@@ -222,7 +222,7 @@ class RawSecureServerSocket extends Stream<RawSecureSocket> { |
} |
void _onSubscriptionStateChange() { |
- if (_controller.hasSubscribers) { |
+ if (_controller.hasListener) { |
_subscription = _socket.listen(_onData, |
onDone: _onDone, |
onError: _onError); |