End refreshing if there is an error

This commit is contained in:
Bob Sun 2017-04-05 19:21:50 -07:00
parent 66b8550a40
commit ab0321e518
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -158,6 +158,7 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
} }
} catch { } catch {
DispatchQueue.main.async { DispatchQueue.main.async {
self.syncControl.endRefreshing()
Utils.alert(title: "Error", message: error.localizedDescription, controller: self, completion: nil) Utils.alert(title: "Error", message: error.localizedDescription, controller: self, completion: nil)
} }
} }