Fix auto launch after invalid shortcut (#622)

This commit is contained in:
Nekromateion
2023-08-07 09:52:48 +02:00
committed by GitHub
parent 8e4aa39064
commit 49a989430f
+4
View File
@@ -216,9 +216,13 @@ namespace VRCX
/// </summary> /// </summary>
/// <param name="path">The path.</param> /// <param name="path">The path.</param>
internal void StartChildProcess(string path) internal void StartChildProcess(string path)
{
try
{ {
using (var process = Process.Start(path)) using (var process = Process.Start(path))
if (process != null)
startedProcesses.Add(path, new HashSet<int>() { process.Id }); startedProcesses.Add(path, new HashSet<int>() { process.Id });
} catch { }
} }
/// <summary> /// <summary>