VirgilSecurity / virgil-e3kit-kotlin

E3Kit is a security framework that simplifies work with Virgil services and presents the easiest way to add full end-to-end security to your chat application to become HIPAA and GDPR compliant and more.
https://virgilsecurity.com/e3kit/
BSD 3-Clause "New" or "Revised" License
12 stars 8 forks source link

Database not closing #51

Open camhart opened 4 years ago

camhart commented 4 years ago

Describe the bug If you create eThree as needed (instead of keeping one around as a singleton), you'll see a handful of these warning messages.

2020-07-09 21:08:06.222 18133-18169/com.my.app W/System: A resource failed to call close. 
2020-07-09 21:08:06.222 18133-18169/com.my.app W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.my.app/databases/ethree-database-ddc31112-c8e9-47a4-970e-20d3ec7d82b7' was leaked!  Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.