Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit 2ea9aac

Browse files
authored
Add missing return which could lead to double notification of a promise and so unexpected exception (#845)
Motivation: When we fail the promise because of an unsupported message we need to return early. Modifications: Add missing return Result: Correctly handle unsupported messages
1 parent 38fdfab commit 2ea9aac

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

codec-classes-quic/src/main/java/io/netty/incubator/codec/quic/QuicheQuicStreamChannel.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,7 @@ void writeWithoutCheckChannelState(Object msg, ChannelPromise promise) {
795795
} catch (UnsupportedOperationException e) {
796796
ReferenceCountUtil.release(msg);
797797
promise.setFailure(e);
798+
return;
798799
}
799800

800801
boolean wasFinSent = QuicheQuicStreamChannel.this.finSent;

0 commit comments

Comments
 (0)