From 16a0a65947643c31b2eb2320e0c6487c42fcaa5c Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Fri, 20 Jul 2018 17:54:16 +1000 Subject: [PATCH] Fix players not getting disconnected when server has run out of disk space --- MCGalaxy/Database/Database.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MCGalaxy/Database/Database.cs b/MCGalaxy/Database/Database.cs index a0d08ead2..493f77677 100644 --- a/MCGalaxy/Database/Database.cs +++ b/MCGalaxy/Database/Database.cs @@ -91,7 +91,9 @@ namespace MCGalaxy.SQL { } } - File.AppendAllText("MySQL_error.log", DateTime.Now + " " + sql + "\r\n"); + try { + File.AppendAllText("MySQL_error.log", DateTime.Now + " " + sql + "\r\n"); + } catch { } Logger.LogError(e); return arg; }