mirror of
https://github.com/aljazceru/meshcore-web.git
synced 2025-12-20 01:24:20 +01:00
fix closing database
This commit is contained in:
@@ -9,7 +9,7 @@ async function initDatabase(publicKeyHex) {
|
||||
|
||||
// close any exsiting database connection
|
||||
if(database){
|
||||
await database.destroy();
|
||||
await database.close();
|
||||
}
|
||||
|
||||
// create a database with a unique name per identity
|
||||
|
||||
Reference in New Issue
Block a user