From a837e095d5b2772ec83cfb8137c5bdfa179fb007 Mon Sep 17 00:00:00 2001 From: Vishalghyv Date: Sat, 7 Mar 2020 12:41:13 +0530 Subject: [PATCH] fix: Added cleaning up old files In android --- src/extension-runners/firefox-android.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/extension-runners/firefox-android.js b/src/extension-runners/firefox-android.js index 4584633d76..1b66f80f29 100644 --- a/src/extension-runners/firefox-android.js +++ b/src/extension-runners/firefox-android.js @@ -132,7 +132,13 @@ export class FirefoxAndroidExtensionRunner { await this.apkPackagesDiscoveryAndSelect(); await this.adbCheckRuntimePermissions(); await this.adbForceStopSelectedPackage(); - + for (const fn of this.cleanupCallbacks) { + try { + fn(); + } catch (error) { + log.error(error); + } + } // Create profile prefs (with enabled remote RDP server), prepare the // artifacts and temporary directory on the selected device, and // push the profile preferences to the remote profile dir.