Minor tweak

This commit is contained in:
Travis Nickles 2017-11-10 11:22:26 -06:00
parent 112e6ab232
commit e88f19ff1f
2 changed files with 3 additions and 2 deletions

View File

@ -416,7 +416,7 @@ namespace DS4Windows
{ {
Task processTask = new Task(() => Task processTask = new Task(() =>
{ {
Task.Delay(5000).Wait(); Thread.Sleep(5000);
System.Diagnostics.Process tempProcess = new System.Diagnostics.Process(); System.Diagnostics.Process tempProcess = new System.Diagnostics.Process();
tempProcess.StartInfo.FileName = programPath; tempProcess.StartInfo.FileName = programPath;
tempProcess.StartInfo.WorkingDirectory = new FileInfo(programPath).Directory.ToString(); tempProcess.StartInfo.WorkingDirectory = new FileInfo(programPath).Directory.ToString();

View File

@ -8,6 +8,7 @@ using System.Xml;
using System.Drawing; using System.Drawing;
using System.Security.Principal; using System.Security.Principal;
using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace DS4Windows namespace DS4Windows
@ -2324,7 +2325,7 @@ namespace DS4Windows
{ {
Task processTask = new Task(() => Task processTask = new Task(() =>
{ {
Task.Delay(5000).Wait(); Thread.Sleep(5000);
System.Diagnostics.Process tempProcess = new System.Diagnostics.Process(); System.Diagnostics.Process tempProcess = new System.Diagnostics.Process();
tempProcess.StartInfo.FileName = programPath; tempProcess.StartInfo.FileName = programPath;
tempProcess.StartInfo.WorkingDirectory = new FileInfo(programPath).Directory.ToString(); tempProcess.StartInfo.WorkingDirectory = new FileInfo(programPath).Directory.ToString();