Advertisement
Guest User

Untitled

a guest
May 25th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. profile.isEnabled = true
  2. profile.saveToPreferences(completionHandler: { (error: Error?) in
  3. if error != nil {
  4. NSLog("today111 TodayViewDelegate Error while saving \(error?.localizedDescription)")
  5. }
  6. else {
  7. profile.loadFromPreferences(completionHandler: { (error: Error?) in
  8. if error != nil {
  9. NSLog("today111 TodayViewDelegate Error while loading \(error?.localizedDescription)")
  10. }
  11. else {
  12. do {
  13. try profile.connection.startVPNTunnel()
  14. NSLog("today111 TodayViewDelegate Start profile successful")
  15. }
  16. catch {
  17. NSLog("today111 TodayViewDelegate Error Start profile \(error.localizedDescription)")
  18. }
  19. }
  20. })
  21. }
  22. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement