Don't reconnect if not necessary

This commit is contained in:
Charles Magahern
2016-01-01 01:16:21 -08:00
parent 66370bbd7c
commit 80696898ef
@@ -89,6 +89,7 @@ class MainViewController: UIViewController, SwitchesViewControllerDelegate {
{
_headerView.xionLogoView.beginAnimating()
if (!_server.connected) {
_updateConnectivityStatus(.Connecting)
_server.connect { (error: NSError?) -> Void in
if (error == nil) {
@@ -99,6 +100,7 @@ class MainViewController: UIViewController, SwitchesViewControllerDelegate {
}
}
}
}
override func viewDidDisappear(animated: Bool)
{