Fix build failure
This commit is contained in:
parent
1589dadcce
commit
c62b47228e
@ -21,7 +21,7 @@ import io.netty.channel.DefaultChannelFuture;
|
|||||||
public class ChannelRunnableWrapper extends DefaultChannelFuture implements Runnable {
|
public class ChannelRunnableWrapper extends DefaultChannelFuture implements Runnable {
|
||||||
|
|
||||||
private final Runnable task;
|
private final Runnable task;
|
||||||
private boolean started = false;
|
private boolean started;
|
||||||
|
|
||||||
public ChannelRunnableWrapper(Channel channel, Runnable task) {
|
public ChannelRunnableWrapper(Channel channel, Runnable task) {
|
||||||
super(channel, true);
|
super(channel, true);
|
||||||
@ -30,7 +30,7 @@ public class ChannelRunnableWrapper extends DefaultChannelFuture implements Runn
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
synchronized(this) {
|
synchronized (this) {
|
||||||
if (!isCancelled()) {
|
if (!isCancelled()) {
|
||||||
started = true;
|
started = true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user