mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 12:33:44 +02:00
proper shutdown
This commit is contained in:
parent
2231e878d5
commit
a8847de910
2 changed files with 6 additions and 1 deletions
|
@ -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)
|
private void ToolbarItem_QuitClicked(object sender, System.EventArgs e)
|
||||||
{
|
{
|
||||||
|
NetworkMonitor.Instance.StopMonitor();
|
||||||
this.Close();
|
this.Close();
|
||||||
Application.Current.Shutdown();
|
Application.Current.Shutdown();
|
||||||
Environment.Exit(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ToolbarItem_NetworkClicked(object sender, System.Windows.RoutedEventArgs e)
|
private void ToolbarItem_NetworkClicked(object sender, System.Windows.RoutedEventArgs e)
|
||||||
|
|
Loading…
Add table
Reference in a new issue