[#1031] StrictMode violation: LeakedClosableViolation data db

This commit is contained in:
Honza Rychnovsky 2023-05-16 14:26:34 +02:00 committed by GitHub
parent 63a3bfe3e4
commit ca0e69d97f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -282,6 +282,7 @@ class SdkSynchronizer private constructor(
val shutdownJob = coroutineScope.launch {
Twig.debug { "Stopping synchronizer $synchronizerKey" }
processor.stop()
storage.close()
}
instances[synchronizerKey] = InstanceState.ShuttingDown(shutdownJob)