fix: dispose of previous applaunch tasks (#4631)

This commit is contained in:
Mathias Mogensen 2024-02-19 14:32:01 +01:00 committed by GitHub
parent 3a4247c304
commit a3a5709b70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,6 +76,11 @@ class FlowyRunner {
IntegrationTestHelper.rustEnvsBuilder = rustEnvsBuilder;
}
// Clear and dispose tasks from previous AppLaunch
if (getIt.isRegistered(instance: AppLauncher)) {
await getIt<AppLauncher>().dispose();
}
// Clear all the states in case of rebuilding.
await getIt.reset();