mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Merge pull request #184 from pi-hole/fix/db_locking
Close database file after initialization
This commit is contained in:
@@ -169,6 +169,9 @@ void db_init(void)
|
||||
}
|
||||
}
|
||||
|
||||
// Close database to prevent having it opened all time
|
||||
sqlite3_close(db);
|
||||
|
||||
if (pthread_mutex_init(&dblock, NULL) != 0)
|
||||
{
|
||||
logg("FATAL: DB mutex init failed\n");
|
||||
|
||||
Reference in New Issue
Block a user