Index: net/socket_stream/socket_stream.cc |
diff --git a/net/socket_stream/socket_stream.cc b/net/socket_stream/socket_stream.cc |
index f610f624c86988a22275312d6c418ee8163b030d..8e5fa706981b6f15d2367aef147ea7e148f457e6 100644 |
--- a/net/socket_stream/socket_stream.cc |
+++ b/net/socket_stream/socket_stream.cc |
@@ -358,7 +358,8 @@ void SocketStream::Finish(int result) { |
Delegate* delegate = delegate_; |
delegate_ = NULL; |
if (delegate) { |
- delegate->OnError(this, result); |
+ if (result != ERR_CONNECTION_CLOSED) |
+ delegate->OnError(this, result); |
if (result != ERR_PROTOCOL_SWITCHED) |
delegate->OnClose(this); |
} |