From 5898da3234f5fb68a742836a83502e52d828a24f Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 1 Jan 2023 15:21:18 -0500 Subject: [PATCH] Maybe fix race condition when account is loaded as profile statuses VC is dealloc'd --- Tusker/Screens/Profile/ProfileStatusesViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tusker/Screens/Profile/ProfileStatusesViewController.swift b/Tusker/Screens/Profile/ProfileStatusesViewController.swift index a7b06a7f..4458d83a 100644 --- a/Tusker/Screens/Profile/ProfileStatusesViewController.swift +++ b/Tusker/Screens/Profile/ProfileStatusesViewController.swift @@ -103,7 +103,7 @@ class ProfileStatusesViewController: UIViewController, TimelineLikeCollectionVie .sink { [unowned self] id in switch state { case .unloaded: - Task { + Task { [self] in await self.load() } case .loaded, .setupInitialSnapshot: