mirror of
https://github.com/etesync/android
synced 2024-11-22 07:58:09 +00:00
SettingsDB: fix file descriptor leaks.
This commit is contained in:
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…
Reference in New Issue
Block a user