Index: net/server/http_connection.cc |
diff --git a/net/server/http_connection.cc b/net/server/http_connection.cc |
index 2bc9d4d0e54ff7a1bb618425d0ac9d5a8909760d..9bce6f8fa94d53c38468a9ba1d47eb9dc50e967b 100644 |
--- a/net/server/http_connection.cc |
+++ b/net/server/http_connection.cc |
@@ -15,13 +15,13 @@ namespace net { |
int HttpConnection::last_id_ = 0; |
void HttpConnection::Send(const std::string& data) { |
- if (!socket_) |
+ if (!socket_.get()) |
return; |
socket_->Send(data); |
} |
void HttpConnection::Send(const char* bytes, int len) { |
- if (!socket_) |
+ if (!socket_.get()) |
return; |
socket_->Send(bytes, len); |
} |
@@ -29,7 +29,7 @@ void HttpConnection::Send(const char* bytes, int len) { |
void HttpConnection::Send(HttpStatusCode status_code, |
const std::string& data, |
const std::string& content_type) { |
- if (!socket_) |
+ if (!socket_.get()) |
return; |
std::string status_message; |