This commit is contained in:
Clebert Suconic 2016-01-01 13:39:21 -05:00
parent 1e8eee0fb7
commit d1c1c50aa2
1 changed files with 3 additions and 1 deletions

View File

@ -103,7 +103,9 @@ public class NettyConnection implements Connection {
@Override
public boolean isWritable(ReadyListener callback) {
synchronized (readyListeners) {
readyListeners.push(callback);
if (!ready) {
readyListeners.push(callback);
}
return ready;
}