Skip to content

Commit

Permalink
Fix High CPU Usage
Browse files Browse the repository at this point in the history
  • Loading branch information
MistressPlague authored Jun 20, 2021
1 parent 9fe0883 commit 62b8e6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Auto Restart Process/Auto Restart Process/Auto Restart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Drawing;
using System.IO;
using System.Security.Principal;
using System.Threading;
using System.Windows.Forms;

namespace Auto_Restart_Process
Expand Down Expand Up @@ -387,6 +388,8 @@ private void RestartWorker_DoWork(object sender, System.ComponentModel.DoWorkEve
HungTimePassed.Reset();
}
}

Thread.Sleep((int)numericUpDown1.Value);
}

Log("Process Died" + (checkBox1.Checked ? " - Restarting Soon" : "") + "!");
Expand Down

0 comments on commit 62b8e6f

Please sign in to comment.