Chromium Code Reviews| Index: sdk/lib/io/secure_socket.dart |
| diff --git a/sdk/lib/io/secure_socket.dart b/sdk/lib/io/secure_socket.dart |
| index 2a28e1356387974a21fb702d7ac973e160f75c1c..24f066bf093ad709710cce9fdea7b818f158ad0d 100644 |
| --- a/sdk/lib/io/secure_socket.dart |
| +++ b/sdk/lib/io/secure_socket.dart |
| @@ -130,7 +130,7 @@ class _SecureSocket implements SecureSocket { |
| } |
| void set onData(void callback()) { |
| - if (_outputStream != null && callback != null) { |
| + if (_inputStream != null && callback != null) { |
|
Mads Ager (google)
2012/12/05 16:02:18
Heh! Thanks!
|
| throw new StreamException( |
| "Cannot set data handler when input stream is used"); |
| } |