Follow ngtcp2_conn_writev_stream specification change

This commit is contained in:
Tatsuhiro Tsujikawa 2021-01-24 15:56:48 +09:00
parent 95102c1c6c
commit d2d2c31ec7
1 changed files with 2 additions and 2 deletions

View File

@ -593,10 +593,10 @@ int Client::write_quic() {
quic.last_error = quic::err_transport(nwrite); quic.last_error = quic::err_transport(nwrite);
return -1; return -1;
} else if (ndatalen > 0 && s->add_write_offset(stream_id, ndatalen) != 0) {
return -1;
} }
assert(ndatalen == -1);
quic_restart_pkt_timer(); quic_restart_pkt_timer();
if (nwrite == 0) { if (nwrite == 0) {