From 5c0092351fd89a012a3d89dadf267df1fe73d233 Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Fri, 15 Apr 2022 11:42:07 +0200 Subject: [PATCH] Renew VFS key if unable to find it --- Classes/Swift/VFSUtil.swift | 1 + 1 file changed, 1 insertion(+) 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)