diff --git a/src/quic/session.cc b/src/quic/session.cc index 87a4a8e54557f7..73ca658e3ed062 100644 --- a/src/quic/session.cc +++ b/src/quic/session.cc @@ -792,7 +792,7 @@ uint64_t Session::SendDatagram(Store&& data) { 1, uv_hrtime()); - if (nwrite < 0) { + if (nwrite < 1) { // Nothing was written to the packet. switch (nwrite) { case 0: {