Add debug to tryFailure

This commit is contained in:
md_5 2013-06-01 17:46:11 +10:00
parent 2a421cdd8d
commit d5eb37c7a6

View File

@ -7,7 +7,9 @@ import io.netty.util.concurrent.GenericFutureListener;
import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException; import java.util.concurrent.TimeoutException;
import java.util.logging.Level;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import net.md_5.bungee.api.ProxyServer;
@RequiredArgsConstructor @RequiredArgsConstructor
public class ReusableChannelPromise implements ChannelPromise public class ReusableChannelPromise implements ChannelPromise
@ -174,6 +176,7 @@ public class ReusableChannelPromise implements ChannelPromise
@Override @Override
public boolean tryFailure(Throwable cause) public boolean tryFailure(Throwable cause)
{ {
throw new UnsupportedOperationException( "Not supported yet." ); ProxyServer.getInstance().getLogger().log( Level.WARNING, "Exception in tryFailure(..)", cause );
return true;
} }
} }