SettingsDB: fix file descriptor leaks.

pull/108/head
Tom Hacohen 4 years ago
parent 5857ed51d0
commit b70e8903c5

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

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

Loading…
Cancel
Save