philadelphia-core: Extract missing MsgType(35) handling
@@ -515,7 +515,7 @@ public class FIXConnection implements Closeable {
FIXValue msgType = message.getMsgType();
if (msgType == null) {
- statusListener.close(FIXConnection.this, "MsgType(35) not found");
+ msgTypeNotFound();
return;
}
@@ -663,6 +663,10 @@ public class FIXConnection implements Closeable {
sendLogout("MsgSeqNum(34) not found");
}
+ private void msgTypeNotFound() throws IOException {
+ statusListener.close(FIXConnection.this, "MsgType(35) not found");
+ }
+
}
private void sendHeartbeat() throws IOException {
