Set busy timeout to 1 second

This commit is contained in:
Sebastian Ramacher 2019-01-20 19:30:22 +01:00
parent b4afb54281
commit 797535aceb

View File

@ -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.");