Make NTP sync thread cancelable

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2024-06-04 23:56:11 +02:00
parent a872c03091
commit 2269caeb9a
4 changed files with 17 additions and 6 deletions
-1
View File
@@ -78,7 +78,6 @@ static bool analyze_database(sqlite3 *db)
}
#define DBOPEN_OR_AGAIN() { if(!db) db = dbopen(false, false); if(!db) { thread_sleepms(DB, 5000); continue; } }
#define BREAK_IF_KILLED() { if(killed) break; }
#define DBCLOSE_OR_BREAK() { dbclose(&db); BREAK_IF_KILLED(); }
void *DB_thread(void *val)