Skip to content

Commit

Permalink
Resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
iiztp committed Jan 8, 2025
1 parent a3a08a4 commit 0090326
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/core/datagram.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,12 @@ QuicDatagramCancelBlocked(
{
QUIC_DATAGRAM* Datagram = &Connection->Datagram;
QUIC_SEND_REQUEST** SendQueue = &Datagram->SendQueue;
while (*SendQueue != NULL) {

if (*SendQueue == NULL) {
return;
}

do {
if ((*SendQueue)->Flags & QUIC_SEND_FLAG_CANCEL_ON_BLOCKED) {
QUIC_SEND_REQUEST* SendRequest = *SendQueue;
if (Datagram->PrioritySendQueueTail == &SendRequest->Next) {
Expand All @@ -608,7 +613,8 @@ QuicDatagramCancelBlocked(
} else {
SendQueue = &((*SendQueue)->Next);
}
}
} while (*SendQueue != NULL);

Datagram->SendQueueTail = SendQueue;

if (Datagram->SendQueue != NULL) {
Expand Down

0 comments on commit 0090326

Please sign in to comment.