Removed Unecessary Print Messages

- Removed xml's printing at the start as well as the amount of visualisers connected from spamming the log.
- Issue of visualisers connecting when not actually connecting was actually an visual issue as the log spits out the number of visualisers right now before the loop has gotten rid of the useless sockets.
#story[1010]
main
Fan-Wu Yang 9 years ago
parent 9f99e21232
commit cfd858194e

@ -97,6 +97,7 @@ public class ConnectionAcceptor implements Runnable {
public void run() { public void run() {
double timeSinceLastHeartBeat = System.currentTimeMillis(); double timeSinceLastHeartBeat = System.currentTimeMillis();
while(true) { while(true) {
//System.out.println(mocks.size());//used to see current amount of visualisers connected.
ArrayBlockingQueue<MockOutput> m = new ArrayBlockingQueue(16, true, mocks); ArrayBlockingQueue<MockOutput> m = new ArrayBlockingQueue(16, true, mocks);
for (MockOutput mo : m) { for (MockOutput mo : m) {
try { try {

@ -46,10 +46,6 @@ public class Event {
this.raceXML = getRaceXMLAtCurrentTime(raceXML); this.raceXML = getRaceXMLAtCurrentTime(raceXML);
this.boatXML = boatXML; this.boatXML = boatXML;
this.regattaXML = regattaXML; this.regattaXML = regattaXML;
System.out.println(raceXML);
System.out.println(boatXML);
System.out.println(regattaXML);
this.xmlFileType = type; this.xmlFileType = type;
this.boatPolars = boatPolars; this.boatPolars = boatPolars;

@ -36,7 +36,7 @@ public class RaceConnection {
s.shutdownInput(); s.shutdownInput();
s.shutdownOutput(); s.shutdownOutput();
s.close(); s.close();
System.out.println(String.valueOf(s.isClosed())); //System.out.println(String.valueOf(s.isClosed()));
return true; return true;
} catch (IOException e) {} } catch (IOException e) {}

Loading…
Cancel
Save