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 96b0a949e1
commit d52dc3b740

View File

@ -528,7 +528,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);
}
}