mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Better mutex cleanup
This commit is contained in:
parent
5bb90828f8
commit
a8c6a97579
2 changed files with 1 additions and 6 deletions
|
|
@ -302,11 +302,7 @@ namespace Wox.Helper
|
|||
/// </summary>
|
||||
public static void Cleanup()
|
||||
{
|
||||
if (singleInstanceMutex != null)
|
||||
{
|
||||
singleInstanceMutex.Close();
|
||||
singleInstanceMutex = null;
|
||||
}
|
||||
singleInstanceMutex?.ReleaseMutex();
|
||||
|
||||
if (channel != null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -80,7 +80,6 @@ namespace Wox
|
|||
|
||||
public void CloseApp()
|
||||
{
|
||||
SingleInstance<App>.singleInstanceMutex.ReleaseMutex();
|
||||
Application.Current.Shutdown();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue