More debugging changes

This commit is contained in:
Anuken
2018-03-02 15:01:49 -05:00
parent e37cdf6040
commit 94f6c1b902
4 changed files with 255 additions and 251 deletions

View File

@@ -274,9 +274,16 @@ public class KryoServer implements ServerProvider {
for(NetConnection c : connections){
Log.err(" - NetConnection / ID {0} / IP {1}", c.id, c.address);
}
//TODO remove
Timers.runTask(0.1f, () -> System.exit(-1));
throw new RuntimeException("Unable to find connection with ID " + id + "!");
Log.err("\nSTACK TRACE:");
StackTraceElement[] e = Thread.getAllStackTraces().get(Thread.currentThread());
for(StackTraceElement s : e){
Log.err("- {0}", s);
}
System.exit(-1);
return;
//throw new RuntimeException("Unable to find connection with ID " + id + "!");
}
conn.send(object, mode);
}