Fixed a potential concurrency issue in DefaultChannelFuture.notifyListeners(), as advised by FindBugs

This commit is contained in:
Trustin Lee 2008-11-07 02:35:04 +00:00
parent 81d29bafc2
commit 34b9b00723

View File

@ -50,8 +50,8 @@ public class DefaultChannelFuture implements ChannelFuture {
private final Channel channel;
private final boolean cancellable;
private ChannelFutureListener firstListener;
private List<ChannelFutureListener> otherListeners;
private volatile ChannelFutureListener firstListener;
private volatile List<ChannelFutureListener> otherListeners;
private boolean done;
private Throwable cause;
private int waiters;