Index: sdk/lib/io/io_sink.dart |
diff --git a/sdk/lib/io/io_sink.dart b/sdk/lib/io/io_sink.dart |
index 4f5c0d559d4d45930ef7cd86d6b8d3a10f45b22e..df3a7daac36faf6ca070c8c62cc851098e742dfa 100644 |
--- a/sdk/lib/io/io_sink.dart |
+++ b/sdk/lib/io/io_sink.dart |
@@ -236,7 +236,7 @@ class _IOSinkImpl<T> implements IOSink<T> { |
} |
void _onSubscriptionStateChange() { |
- if (_controller.hasSubscribers) { |
+ if (_controller.hasListener) { |
_paused = false; |
_resume(); |
} else { |