Skip to content

Commit 85c94d8

Browse files
Update Program.cs
1 parent 509d433 commit 85c94d8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

CLI/Program.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ public static void LogAndRestart(Exception ex)
143143
Logger.LogError(ex);
144144
FileLogger.Flush(null);
145145
Thread.Sleep(500);
146-
if (Server.Config.restartOnError)
147-
{
148-
Thread stopThread = Server.Stop(true, "Server restart - unhandled error");
149-
stopThread.Join();
150-
}
146+
//if (Server.Config.restartOnError)
147+
//{
148+
Thread stopThread = Server.Stop(true, "Server restart - unhandled error");
149+
stopThread.Join();
150+
//}
151151
}
152152
public static void GlobalExHandler(object sender, UnhandledExceptionEventArgs e)
153153
{

0 commit comments

Comments
 (0)