diff --git a/Classes/Swift/VFSUtil.swift b/Classes/Swift/VFSUtil.swift index 5047fd21c..6dc09d5ae 100644 --- a/Classes/Swift/VFSUtil.swift +++ b/Classes/Swift/VFSUtil.swift @@ -188,6 +188,7 @@ import os } guard let secret = decrypt(encryptedText: encryptedKey) else { log("[VFS] Unable to decryt encrypted key.", .error) + removeExistingVFSKeyIfAny() return false } Factory.Instance.setVfsEncryption(encryptionModule: 2, secret: secret, secretSize: 32)