Commit 797535ac authored by Sebastian Ramacher's avatar Sebastian Ramacher

Set busy timeout to 1 second

parent b4afb542
......@@ -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.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment