From ce86e4ad4683d8282c0123bcd67efcd4fc209150 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Thu, 29 Jun 2023 13:30:43 +0300 Subject: [PATCH] Stop running room proxy cleanup in a separate task --- ElementX/Sources/Services/Room/RoomProxy.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ElementX/Sources/Services/Room/RoomProxy.swift b/ElementX/Sources/Services/Room/RoomProxy.swift index 40e47645a..390188d24 100644 --- a/ElementX/Sources/Services/Room/RoomProxy.swift +++ b/ElementX/Sources/Services/Room/RoomProxy.swift @@ -52,10 +52,8 @@ class RoomProxy: RoomProxyProtocol { } deinit { - Task { @MainActor [roomTimelineObservationToken, roomListItem] in - roomTimelineObservationToken?.cancel() - roomListItem.unsubscribe() - } + roomTimelineObservationToken?.cancel() + roomListItem.unsubscribe() } init(roomListItem: RoomListItemProtocol,