Skip to content

Commit

Permalink
fix(auto_close): auto close after cleaning everything
Browse files Browse the repository at this point in the history
  • Loading branch information
MurkyYT committed Jul 23, 2024
1 parent b9f97b9 commit 6629952
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CSAuto/MainApp.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1147,8 +1147,6 @@ private void CsProcess_Exited(object sender, EventArgs e)
DXGIcapture.DeInit();
Log.WriteLine("|MainApp.cs| Deinit DXGI Capture");
}
if (Properties.Settings.Default.autoCloseCSAuto)
Dispatcher.Invoke(() => { Application.Current.Shutdown(); });

clients?.Clear();
lastKeepAlive?.Clear();
Expand All @@ -1159,6 +1157,9 @@ private void CsProcess_Exited(object sender, EventArgs e)
csProcess = null;
inLobby = false;
csRunning = false;

if (Properties.Settings.Default.autoCloseCSAuto)
Dispatcher.Invoke(() => { Application.Current.Shutdown(); });
//ConDump.StopListening();
//ConDump.OnChange -= ConDump_OnChange;
NativeMethods.OptimizeMemory();
Expand Down

0 comments on commit 6629952

Please sign in to comment.