Fixed a bug that program crashes when it receive regatta xml during the race, as it doesn't know how to handle the xml.

#story[984]
This commit is contained in:
Haoming Yin
2017-07-26 23:32:16 +12:00
parent 4c6d107102
commit 201c88a253
4 changed files with 8 additions and 14 deletions
@@ -79,7 +79,6 @@ public class ClientPacketParser {
extractDisplayMessage(packet);
break;
case XML_MESSAGE:
newRaceXmlReceived = true;
extractXmlMessage(packet);
break;
case RACE_START_STATUS:
@@ -292,6 +291,7 @@ public class ClientPacketParser {
}
xmlObject.constructXML(doc, messageType);
if (messageType == 7) { //7 is the boat XML
boats = xmlObject.getBoatXML().getCompetingBoats();
// Set/Update the ClientState boats after receiving new boat xml.