Index: net/quic/quic_per_connection_packet_writer.cc |
diff --git a/net/quic/quic_per_connection_packet_writer.cc b/net/quic/quic_per_connection_packet_writer.cc |
index 6347bc201df632e68de7aac05a19a63584179edf..4943320c3ef3aac09909af56aa5fb3ef6a83c9d0 100644 |
--- a/net/quic/quic_per_connection_packet_writer.cc |
+++ b/net/quic/quic_per_connection_packet_writer.cc |
@@ -44,7 +44,9 @@ void QuicPerConnectionPacketWriter::SetWritable() { |
} |
void QuicPerConnectionPacketWriter::OnWriteComplete(WriteResult result) { |
- connection_->OnPacketSent(result); |
+ if (result.status == WRITE_STATUS_ERROR) { |
+ connection_->OnWriteError(result.error_code); |
+ } |
} |
} // namespace net |