Skip to content

Commit

Permalink
Await process to exit
Browse files Browse the repository at this point in the history
  • Loading branch information
evilfactory committed Aug 29, 2024
1 parent 14c1932 commit 36e7a37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Luatrauma.AutoUpdater/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public async static Task Start()
if (Args.Length > 1)
{
Console.WriteLine("Starting " + string.Join(" ", Args));
Process.Start(Args[0], Args.Skip(1).ToArray());
Process process = Process.Start(Args[0], Args.Skip(1).ToArray());
await process.WaitForExitAsync();
}
}
}
Expand Down

0 comments on commit 36e7a37

Please sign in to comment.