diff options
| author | Michael VanOverbeek <[email protected]> | 2017-05-09 01:54:31 +0000 |
|---|---|---|
| committer | Michael VanOverbeek <[email protected]> | 2017-05-09 01:54:31 +0000 |
| commit | 3b1c71e6710c06a9e390f449589bd30cb2f4b7dd (patch) | |
| tree | fa69e10348efc68751ce4542cc71c839b1717508 /ShiftOS.Server/Program.cs | |
| parent | 3665e073612ff72ad65d6184fd3c8c10c9ab5ab9 (diff) | |
| download | shiftos_thereturn-3b1c71e6710c06a9e390f449589bd30cb2f4b7dd.tar.gz shiftos_thereturn-3b1c71e6710c06a9e390f449589bd30cb2f4b7dd.tar.bz2 shiftos_thereturn-3b1c71e6710c06a9e390f449589bd30cb2f4b7dd.zip | |
test
Diffstat (limited to 'ShiftOS.Server/Program.cs')
| -rw-r--r-- | ShiftOS.Server/Program.cs | 6 |
1 files changed, 6 insertions, 0 deletions
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 /// <param name="args">The command-line arguments.</param> 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) => { |
