Made server close on crash

This commit is contained in:
Anuken
2018-01-08 20:41:00 -05:00
parent 36964be6ac
commit 2662c0a8fd

View File

@ -104,6 +104,14 @@ public class DesktopLauncher {
}catch (Exception e){
e.printStackTrace();
try{
Net.closeServer();
}catch (Exception p){}
try{
Net.disconnect();
}catch (Exception p){}
//don't create crash logs for me (anuke), as it's expected
if(System.getProperty("user.name").equals("anuke")) return;