Skip to content

Commit

Permalink
Check queue if premature cancel (could be null)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Maldini committed May 13, 2019
1 parent ad7e545 commit d7267e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/reactor/netty/channel/MonoSendMany.java
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,10 @@ void cleanup() {
.removeListener(this);

Context context = actual.currentContext();
Queue<I> queue = this.queue;
if (queue == null) {
return;
}
while (!queue.isEmpty()) {
I sourceMessage = queue.poll();
if (sourceMessage != null) {
Expand Down

0 comments on commit d7267e1

Please sign in to comment.