From 3b1c71e6710c06a9e390f449589bd30cb2f4b7dd Mon Sep 17 00:00:00 2001 From: Michael VanOverbeek Date: Tue, 9 May 2017 01:54:31 +0000 Subject: [PATCH] test --- ShiftOS.Server/Program.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ShiftOS.Server/Program.cs b/ShiftOS.Server/Program.cs index 97c8a66..fbbfd7d 100644 --- a/ShiftOS.Server/Program.cs +++ b/ShiftOS.Server/Program.cs @@ -86,6 +86,12 @@ namespace ShiftOS.Server /// The command-line arguments. public static void Main(string[] args) { + Thread.Sleep(2000); + AppDomain.CurrentDomain.UnhandledException += (o, a) => + { + System.Diagnostics.Process.Start("ShiftOS.Server.exe"); + Environment.Exit(0); + }; System.Timers.Timer tmr = new System.Timers.Timer(5000); tmr.Elapsed += (o, a) => {