Commit ab8d369d authored by bogdanbear's avatar bogdanbear

Some improvements to detecting broken connections

parent 2e4aff74
......@@ -180,7 +180,11 @@ public class LocalGameLoop extends Thread{
*/
public void sendEvent(NetworkObject event)
{
getNetworkConnection().sendEvent(event);
if (getNetworkConnection().isBroken())
GameStarter.initiateBrokenConnectionMeasures();
else {
getNetworkConnection().sendEvent(event);
}
}
/**
......
......@@ -17,7 +17,7 @@ public class TestEvent implements Event{
}
@Override
public boolean execute(GameContent gameContent) {
System.out.println("Executing vital stuff...");
//System.out.println("TestEvent: Executing vital stuff...");
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment