unsub from yubikey events on disappearing

This commit is contained in:
Kyle Spearrin 2018-01-18 13:24:23 -05:00
parent 53f406a267
commit 41efa96291
1 changed files with 3 additions and 0 deletions

View File

@ -302,6 +302,9 @@ namespace Bit.App.Pages
TokenCell.Dispose();
TokenCell.Entry.Completed -= Entry_Completed;
}
MessagingCenter.Unsubscribe<Application, string>(Application.Current, "GotYubiKeyOTP");
MessagingCenter.Unsubscribe<Application>(Application.Current, "ResumeYubiKey");
}
private async void AnotherMethodAsync()