Fixed a bug where DefaultChannelFuture.isSuccess() returns true even if the future is not done yet

This commit is contained in:
Trustin Lee 2009-02-26 09:28:37 +00:00
parent ae7fb55d62
commit 1ff58978a2

View File

@ -80,7 +80,7 @@ public class DefaultChannelFuture implements ChannelFuture {
} }
public synchronized boolean isSuccess() { public synchronized boolean isSuccess() {
return cause == null; return done && cause == null;
} }
public synchronized Throwable getCause() { public synchronized Throwable getCause() {