mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 21:51:19 -04:00
Don't kill the server when it runs out of memory saving on mono.
This commit is contained in:
parent
2ad9ef96f2
commit
95349f9dd5
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user