diff --git a/Utils/SQLiteStore.m b/Utils/SQLiteStore.m index 3d13c306b..7827da3a5 100644 --- a/Utils/SQLiteStore.m +++ b/Utils/SQLiteStore.m @@ -1923,6 +1923,18 @@ static SQLiteStore *g_sharedStore = NULL; return ret; } +- (void)queueEmpty +{ + sqlite3_stmt *st = stmt[stmt_remove_queue_all]; + + if (sqlite3_reset(st) || + sqlite3_step(st) != SQLITE_DONE || + sqlite3_reset(st)) + { + return; + } +} + - (int64_t)queueGetCount { sqlite3_stmt *st = stmt[stmt_count_queue];