about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server.c b/server.c
index 48b760c..6cb0611 100644
--- a/server.c
+++ b/server.c
@@ -110,6 +110,7 @@ int main(int argc, char *argv[]) {
 
 	int error = sqlite3_open_v2(path, &db, SQLITE_OPEN_READONLY, NULL);
 	if (error) errx(EX_NOINPUT, "%s: %s", path, sqlite3_errmsg(db));
+	sqlite3_busy_timeout(db, 1000);
 	atexit(finalizeAll);
 
 	sqlite3_stmt *check;