summaryrefslogtreecommitdiffstats
path: root/chrome/common/socket_stream_dispatcher.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/socket_stream_dispatcher.cc')
-rw-r--r--chrome/common/socket_stream_dispatcher.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/common/socket_stream_dispatcher.cc b/chrome/common/socket_stream_dispatcher.cc
index af95d5c..a7e484a 100644
--- a/chrome/common/socket_stream_dispatcher.cc
+++ b/chrome/common/socket_stream_dispatcher.cc
@@ -141,10 +141,10 @@ void IPCWebSocketStreamHandleBridge::DoConnect(const GURL& url) {
socket_id_ = all_bridges.Add(this);
DCHECK_NE(socket_id_, chrome_common_net::kNoSocketId);
+ AddRef(); // Released in OnClosed().
if (child_thread_->Send(
new ViewHostMsg_SocketStream_Connect(url, socket_id_))) {
DVLOG(1) << "Connect socket_id=" << socket_id_;
- AddRef(); // Released in OnClosed().
// TODO(ukai): timeout to OnConnected.
} else {
LOG(ERROR) << "IPC SocketStream_Connect failed.";