diff --git a/zathura/database-sqlite.c b/zathura/database-sqlite.c index dd20846..1b17acb 100644 --- a/zathura/database-sqlite.c +++ b/zathura/database-sqlite.c @@ -354,6 +354,9 @@ sqlite_db_init(ZathuraSQLDatabase* db, const char* path) return; } + /* Set busy timeout to 1s. */ + sqlite3_busy_timeout(session, 1000); + const int database_version = sqlite_get_user_version(session); if (database_version == -1) { girara_error("Failed to query database version.");