Lock shared memory before storing queries to database

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2022-07-17 12:34:24 +02:00
parent b422d1b931
commit fd12962f60
+2
View File
@@ -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;
}