Index: sdk/lib/io/secure_socket.dart |
diff --git a/sdk/lib/io/secure_socket.dart b/sdk/lib/io/secure_socket.dart |
index 62ecb4d6e427e196dc17c55f235d69d4b065c6e4..0b26c24474ac58598f10dc029607a4682544b43b 100644 |
--- a/sdk/lib/io/secure_socket.dart |
+++ b/sdk/lib/io/secure_socket.dart |
@@ -464,7 +464,7 @@ class _RawSecureSocket extends Stream<RawSocketEvent> |
// up handlers to flush the pipeline when possible. |
int write(List<int> data, [int offset, int bytes]) { |
if (_closedWrite) { |
- _controller.signalError(new AsyncError(new SocketIOException( |
+ _controller.addError(new AsyncError(new SocketIOException( |
"Writing to a closed socket"))); |
return 0; |
} |
@@ -572,7 +572,7 @@ class _RawSecureSocket extends Stream<RawSocketEvent> |
if (_connectPending) { |
_handshakeComplete.completeError(e); |
} else { |
- _controller.signalError(e); |
+ _controller.addError(e); |
} |
_close(); |
} |