Index: net/quic/congestion_control/tcp_cubic_sender.cc |
diff --git a/net/quic/congestion_control/tcp_cubic_sender.cc b/net/quic/congestion_control/tcp_cubic_sender.cc |
index ccc745932789401ae15f11d774a27ed4faacd68c..0aae5fdea714c109ed5fbcf3c3aff448fa03d74d 100644 |
--- a/net/quic/congestion_control/tcp_cubic_sender.cc |
+++ b/net/quic/congestion_control/tcp_cubic_sender.cc |
@@ -79,8 +79,8 @@ void TcpCubicSender::SetFromConfig(const QuicConfig& config, bool is_server) { |
} |
void TcpCubicSender::SetNumEmulatedConnections(int num_connections) { |
- num_connections_ = num_connections; |
- cubic_.SetNumConnections(num_connections); |
+ num_connections_ = max(1, num_connections); |
+ cubic_.SetNumConnections(num_connections_); |
} |
void TcpCubicSender::OnIncomingQuicCongestionFeedbackFrame( |