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 efb4feccd7edc418335e56bba172e6360db80c55..8dac0fceef1f2df3ad7f235e089d320e7c4321d9 100644 |
--- a/net/quic/quic_per_connection_packet_writer.cc |
+++ b/net/quic/quic_per_connection_packet_writer.cc |
@@ -50,7 +50,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 |