Index: sdk/lib/web_audio/dartium/web_audio_dartium.dart |
diff --git a/sdk/lib/web_audio/dartium/web_audio_dartium.dart b/sdk/lib/web_audio/dartium/web_audio_dartium.dart |
index 4b410d1d43e5e10ee82b1ccb54890ff2f20dc74f..3743a5da47b0089e92fa28cd6f5e518ea6c90ba5 100644 |
--- a/sdk/lib/web_audio/dartium/web_audio_dartium.dart |
+++ b/sdk/lib/web_audio/dartium/web_audio_dartium.dart |
@@ -1096,7 +1096,7 @@ class ScriptProcessorNode extends AudioNode { |
if (_eventStream == null) { |
var controller = new StreamController(); |
var callback = (audioData) { |
- if (controller.hasSubscribers) { |
+ if (controller.hasListener) { |
// This stream is a strange combination of broadcast and single |
// subscriber streams. We only allow one listener, but if there is |
// no listener, we don't queue up events, we just drop them on the |