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

Unified Diff: net/tools/quic/quic_client.cc

Issue 15937012: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small bug fixes Created 7 years, 7 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: net/tools/quic/quic_client.cc
diff --git a/net/tools/quic/quic_client.cc b/net/tools/quic/quic_client.cc
index e3edac58aff314e3bc043d3822f665005344d3e3..7430e3daf4f85b45ff2dbac427316e96bd84c3ad 100644
--- a/net/tools/quic/quic_client.cc
+++ b/net/tools/quic/quic_client.cc
@@ -58,7 +58,7 @@ QuicClient::QuicClient(IPEndPoint server_address,
QuicClient::~QuicClient() {
if (connected()) {
session()->connection()->SendConnectionClosePacket(
- QUIC_PEER_GOING_AWAY, string());
+ QUIC_PEER_GOING_AWAY, "");
}
}
@@ -183,7 +183,9 @@ void QuicClient::SendRequestsAndWaitForResponse(int argc, char *argv[]) {
}
QuicReliableClientStream* QuicClient::CreateReliableClientStream() {
- DCHECK(connected());
+ if (!connected()) {
+ return NULL;
+ }
return session_->CreateOutgoingReliableStream();
}

Powered by Google App Engine
This is Rietveld 408576698