1
0
mirror of https://github.com/etesync/android synced 2024-11-22 16:08:13 +00:00

SettingsDB: fix file descriptor leaks.

This commit is contained in:
Tom Hacohen 2020-01-26 13:06:02 +02:00
parent 5857ed51d0
commit b70e8903c5
2 changed files with 4 additions and 0 deletions

View File

@ -210,6 +210,8 @@ class App : Application() {
val dbHelper = ServiceDB.OpenHelper(this) val dbHelper = ServiceDB.OpenHelper(this)
migrateServices(dbHelper) migrateServices(dbHelper)
dbHelper.close()
} }
} }

View File

@ -107,6 +107,8 @@ class HttpClient private constructor(
//if (BuildConfig.customCerts) //if (BuildConfig.customCerts)
customCertManager(CustomCertManager(context, true, customCertManager(CustomCertManager(context, true,
!(settings.getBoolean(App.DISTRUST_SYSTEM_CERTIFICATES,false)), true)) !(settings.getBoolean(App.DISTRUST_SYSTEM_CERTIFICATES,false)), true))
dbHelper.close()
} }
// use account settings for authentication // use account settings for authentication