mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-18 10:46:33 +00:00
proper shutdown
This commit is contained in:
parent
2231e878d5
commit
a8847de910
@ -188,5 +188,10 @@ namespace WinUI
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void StopMonitor()
|
||||
{
|
||||
runThread.Abort();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -175,9 +175,9 @@ namespace WinUI
|
||||
|
||||
private void ToolbarItem_QuitClicked(object sender, System.EventArgs e)
|
||||
{
|
||||
NetworkMonitor.Instance.StopMonitor();
|
||||
this.Close();
|
||||
Application.Current.Shutdown();
|
||||
Environment.Exit(0);
|
||||
}
|
||||
|
||||
private void ToolbarItem_NetworkClicked(object sender, System.Windows.RoutedEventArgs e)
|
||||
|
Loading…
Reference in New Issue
Block a user