| Index: sdk/lib/async/stream.dart
|
| diff --git a/sdk/lib/async/stream.dart b/sdk/lib/async/stream.dart
|
| index 3696a0b8c4e031495c07b605e9256605900fd00f..7da445168addd87af12387a9a5ce5eab2e39f13c 100644
|
| --- a/sdk/lib/async/stream.dart
|
| +++ b/sdk/lib/async/stream.dart
|
| @@ -132,7 +132,7 @@ abstract class Stream<T> {
|
| }
|
| },
|
| onSubscriptionStateChange: () {
|
| - if (controller.hasSubscribers) {
|
| + if (controller.hasListener) {
|
| watch.start();
|
| startPeriodicTimer();
|
| } else {
|
| @@ -981,7 +981,7 @@ abstract class StreamEventTransformer<S, T> implements StreamTransformer<S, T> {
|
| }
|
| },
|
| onSubscriptionStateChange: () {
|
| - if (controller.hasSubscribers) {
|
| + if (controller.hasListener) {
|
| subscription = transformingStream.listen(
|
| controller.add,
|
| onError: controller.addError,
|
|
|