Madan Jampani

Removed redundant serialization block

...@@ -36,11 +36,6 @@ public class MessageEncoder extends MessageToByteEncoder<InternalMessage> { ...@@ -36,11 +36,6 @@ public class MessageEncoder extends MessageToByteEncoder<InternalMessage> {
36 // write preamble 36 // write preamble
37 out.writeBytes(PREAMBLE); 37 out.writeBytes(PREAMBLE);
38 38
39 - try {
40 - SERIALIZER.encode(message);
41 - } catch (Exception e) {
42 - e.printStackTrace();
43 - }
44 byte[] payload = SERIALIZER.encode(message); 39 byte[] payload = SERIALIZER.encode(message);
45 40
46 // write payload length 41 // write payload length
......