Skip to content

Commit cce74ef

Browse files
author
Norman Maurer
committed
[netty#1448] Don't print failure if VoidChannelPromise is used
1 parent 6a9f965 commit cce74ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

transport/src/main/java/io/netty/channel/ChannelOutboundBuffer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ void fail(Throwable cause) {
220220
}
221221

222222
do {
223-
if (!currentPromise.tryFailure(cause)) {
223+
if (!(currentPromise instanceof VoidChannelPromise) && !currentPromise.tryFailure(cause)) {
224224
logger.warn("Promise done already:", cause);
225225
}
226226

0 commit comments

Comments
 (0)