Don't kill the server when it runs out of memory saving on mono.

This commit is contained in:
UnknownShadow200 2016-05-14 12:47:27 +10:00
parent 2ad9ef96f2
commit 95349f9dd5
2 changed files with 0 additions and 16 deletions

View File

@ -582,21 +582,6 @@ namespace MCGalaxy
{
Server.s.Log("Skipping level save for " + name + ".");
}
}
catch (OutOfMemoryException e)
{
Server.ErrorLog(e);
if (Server.mono)
{
Process[] prs = Process.GetProcesses();
foreach (Process pr in prs)
{
if (pr.ProcessName == "MCGalaxy")
pr.Kill();
}
}
else
Command.all.Find("restart").Use(null, "");
} catch (Exception e) {
Server.s.Log("FAILED TO SAVE :" + name);
Player.GlobalMessage("FAILED TO SAVE :" + name);

View File

@ -557,7 +557,6 @@ namespace MCGalaxy
} catch (Exception e) {
ErrorLog(e);
s.Log("MySQL settings have not been set! Please Setup using the properties window.");
//process.Kill();
return;
}