Chromium Code Reviews| Index: content/renderer/p2p/ipc_socket_factory.cc |
| diff --git a/content/renderer/p2p/ipc_socket_factory.cc b/content/renderer/p2p/ipc_socket_factory.cc |
| index 59d94ff6837c0f04ff221ef1b51044d0a1f1bb17..a0b2053f29e3d6176354dc7348e02175d8e58786 100644 |
| --- a/content/renderer/p2p/ipc_socket_factory.cc |
| +++ b/content/renderer/p2p/ipc_socket_factory.cc |
| @@ -474,6 +474,10 @@ void IpcPacketSocket::OnSendComplete() { |
| void IpcPacketSocket::OnError() { |
| DCHECK_EQ(base::MessageLoop::current(), message_loop_); |
| + if (state_ == IS_OPENING && IsTcpClientSocket(type_)) { |
|
Sergey Ulanov
2014/05/16 23:03:21
Do you need this condition? Maybe call SignalClose
Mallinath (Gone from Chromium)
2014/05/16 23:34:57
actually we don't need, but only TCP sockets are l
|
| + SignalClose(this); |
| + } |
| + |
| state_ = IS_ERROR; |
| error_ = ECONNABORTED; |
| } |