Fixed a bug where DefaultChannelFuture.isSuccess() returns true even if the future is not done yet
This commit is contained in:
parent
ae7fb55d62
commit
1ff58978a2
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user