We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e4587d commit 6788c0eCopy full SHA for 6788c0e
AutoUpdater.NET/AutoUpdater.cs
@@ -583,11 +583,6 @@ internal static void Exit()
583
var currentProcess = Process.GetCurrentProcess();
584
foreach (Process process in Process.GetProcessesByName(currentProcess.ProcessName))
585
{
586
- if (process.HasExited)
587
- {
588
- continue;
589
- }
590
-
591
try
592
593
string processPath = process.MainModule?.FileName;
@@ -604,6 +599,11 @@ internal static void Exit()
604
599
.TotalMilliseconds); // Give some time to process message
605
600
}
606
601
602
+ if (process.HasExited)
603
+ {
+ continue;
+ }
+
607
process.Kill(); //TODO: Show UI message asking user to close program himself instead of silently killing it
608
609
catch (Exception)
0 commit comments