Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: sdk/lib/io/secure_socket.dart

Issue 12610006: Renamed StreamSink to EventSink. Renamed signalError to addError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changed inheritance back! Now create StreamSink instead of EventSink where we create them. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698