Handle any exception so it doesn't implode. (Still prints to the console.)

This commit is contained in:
Myles 2016-03-08 21:16:34 +00:00
parent fc4a617da7
commit 2144fa1837
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ public class ViaDecodeHandler extends ByteToMessageDecoder {
incomingTransformer.transform(id, bytebuf, newPacket);
bytebuf.clear();
bytebuf = newPacket;
} catch (CancelException e) {
} catch (Exception e) {
bytebuf.clear();
throw e;
}

View File

@ -73,7 +73,7 @@ public class ViaEncodeHandler extends MessageToByteEncoder {
bytebuf.clear();
try {
outgoingTransformer.transform(id, oldPacket, bytebuf);
} catch (CancelException e) {
} catch (Exception e) {
bytebuf.clear();
throw e;
} finally {