Do not warn if failed to mark a void promise as success
- it's always supposed to fail.
This commit is contained in:
parent
96b0a949e1
commit
d52dc3b740
@ -528,7 +528,7 @@ public final class ChannelOutboundBuffer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void safeSuccess(ChannelPromise promise) {
|
private static void safeSuccess(ChannelPromise promise) {
|
||||||
if (!promise.trySuccess()) {
|
if (!(promise instanceof VoidChannelPromise) && !promise.trySuccess()) {
|
||||||
logger.warn("Failed to mark a promise as success because it is done already: {}", promise);
|
logger.warn("Failed to mark a promise as success because it is done already: {}", promise);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user