mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-09-26 00:40:13 +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…
x
Reference in New Issue
Block a user