Do not warn if failed to mark a void promise as success

- it's always supposed to fail.
This commit is contained in:
Trustin Lee 2014-02-10 15:03:46 -08:00
parent fee1d9e75c
commit 6c094237e5

View File

@ -578,7 +578,7 @@ public final class ChannelOutboundBuffer {
}
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);
}
}