From 41efa9629120b57973f1ac0e4ca16a890d308c43 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 18 Jan 2018 13:24:23 -0500 Subject: [PATCH] unsub from yubikey events on disappearing --- src/App/Pages/LoginTwoFactorPage.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/App/Pages/LoginTwoFactorPage.cs b/src/App/Pages/LoginTwoFactorPage.cs index 93a26e689..f1923ebf7 100644 --- a/src/App/Pages/LoginTwoFactorPage.cs +++ b/src/App/Pages/LoginTwoFactorPage.cs @@ -302,6 +302,9 @@ namespace Bit.App.Pages TokenCell.Dispose(); TokenCell.Entry.Completed -= Entry_Completed; } + + MessagingCenter.Unsubscribe(Application.Current, "GotYubiKeyOTP"); + MessagingCenter.Unsubscribe(Application.Current, "ResumeYubiKey"); } private async void AnotherMethodAsync()