mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-11 02:03:47 +01:00
Set busy timeout to 1 second
This commit is contained in:
parent
b4afb54281
commit
797535aceb
@ -354,6 +354,9 @@ sqlite_db_init(ZathuraSQLDatabase* db, const char* path)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Set busy timeout to 1s. */
|
||||||
|
sqlite3_busy_timeout(session, 1000);
|
||||||
|
|
||||||
const int database_version = sqlite_get_user_version(session);
|
const int database_version = sqlite_get_user_version(session);
|
||||||
if (database_version == -1) {
|
if (database_version == -1) {
|
||||||
girara_error("Failed to query database version.");
|
girara_error("Failed to query database version.");
|
||||||
|
Loading…
Reference in New Issue
Block a user