diff --git a/Tusker/Screens/Onboarding/InstanceSelectorTableViewController.swift b/Tusker/Screens/Onboarding/InstanceSelectorTableViewController.swift index 572e2b2f22..9d48ca6f12 100644 --- a/Tusker/Screens/Onboarding/InstanceSelectorTableViewController.swift +++ b/Tusker/Screens/Onboarding/InstanceSelectorTableViewController.swift @@ -26,6 +26,7 @@ class InstanceSelectorTableViewController: UITableViewController { var recommendedInstances: [InstanceSelector.Instance] = [] let urlCheckerSubject = PassthroughSubject() + var urlHandler: AnyCancellable? var currentQuery: String? init() { @@ -66,7 +67,7 @@ class InstanceSelectorTableViewController: UITableViewController { navigationItem.searchController = searchController definesPresentationContext = true - _ = urlCheckerSubject + urlHandler = urlCheckerSubject .debounce(for: .seconds(1), scheduler: RunLoop.main) .compactMap { $0?.trimmingCharacters(in: .whitespacesAndNewlines) } .sink(receiveValue: updateSpecificInstance)