mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Lock shared memory before storing queries to database
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -77,7 +77,9 @@ void *DB_thread(void *val)
|
||||
// Do this once per second
|
||||
if(now > before)
|
||||
{
|
||||
lock_shm();
|
||||
queries_to_database();
|
||||
unlock_shm();
|
||||
before = now;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user