Skip to content

Commit

Permalink
Merge pull request #321 from Eistern/bugfix/update-writer-for-direct-…
Browse files Browse the repository at this point in the history
…executor

Remove incomingMessage from the incomingQueue only once
  • Loading branch information
pnv1 authored Sep 27, 2024
2 parents 85415ed + 2f92d0a commit 14c04e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,10 @@ private void free(int messageCount, long sizeBytes) {
return;
}
logger.trace("[{}] Putting a message into send buffer after freeing some space", id);
incomingQueue.remove();
if (incomingMessage.future.complete(null)) {
acceptMessageIntoSendingQueue(incomingMessage.message);
}
incomingQueue.remove();
}
logger.trace("[{}] All messages from incomingQueue are accepted into send buffer", id);
}
Expand Down

0 comments on commit 14c04e1

Please sign in to comment.