Fixes #6988 - Prevent actor switching when tearing down the rendezvous

This commit is contained in:
Stefan Ceriu
2022-10-27 13:18:11 +03:00
committed by Stefan Ceriu
parent 33cf429526
commit 0dcaa7de6a

View File

@@ -352,6 +352,7 @@ class QRLoginService: NSObject, QRLoginServiceProtocol {
await teardownRendezvous()
}
@MainActor
private func teardownRendezvous(state: QRLoginServiceState? = nil) async {
// Stop listening for changes, try deleting the resource
_ = await rendezvousService?.tearDown()