mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: dispose of previous applaunch tasks (#4631)
This commit is contained in:
parent
3a4247c304
commit
a3a5709b70
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user