proper shutdown

This commit is contained in:
Grant Limberg 2016-11-18 14:23:22 -08:00
parent 2231e878d5
commit a8847de910
2 changed files with 6 additions and 1 deletions

View File

@ -188,5 +188,10 @@ namespace WinUI
}
}
}
public void StopMonitor()
{
runThread.Abort();
}
}
}

View File

@ -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)