diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2020-02-04 12:18:30 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2020-02-04 12:18:30 +0100 |
| commit | 78219f7e0c8c2fb8a29ba0a60b47776a4306a028 (patch) | |
| tree | f9cfa97b7c17aee0c53a6663742b296515394a62 | |
| parent | 2415e2b82fa0aeb3d3c045e0d44410e79121a73b (diff) | |
| parent | a1f871838e25e62f63951bf3ce8505ab9c047532 (diff) | |
| download | mullvadvpn-78219f7e0c8c2fb8a29ba0a60b47776a4306a028.tar.xz mullvadvpn-78219f7e0c8c2fb8a29ba0a60b47776a4306a028.zip | |
Merge branch 'select-location-use-weak-refs'
| -rw-r--r-- | ios/MullvadVPN/SelectLocationController.swift | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ios/MullvadVPN/SelectLocationController.swift b/ios/MullvadVPN/SelectLocationController.swift index d6aedc8086..48dbd6f3f9 100644 --- a/ios/MullvadVPN/SelectLocationController.swift +++ b/ios/MullvadVPN/SelectLocationController.swift @@ -103,12 +103,12 @@ class SelectLocationController: UITableViewController { .map { (filteredRelayList, $0) } }) .receive(on: DispatchQueue.main) - .handleEvents(receiveSubscription: { _ in - self.activityIndicator.startAnimating() - }, receiveCompletion: { _ in - self.activityIndicator.stopAnimating() - }, receiveCancel: { - self.activityIndicator.stopAnimating() + .handleEvents(receiveSubscription: { [weak self] _ in + self?.activityIndicator.startAnimating() + }, receiveCompletion: { [weak self] _ in + self?.activityIndicator.stopAnimating() + }, receiveCancel: { [weak self] () in + self?.activityIndicator.stopAnimating() }) .sink(receiveCompletion: { (completion) in if case .failure(let error) = completion { |
