mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-13 09:17:28 +07:00
Made server close on crash
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user