From 7c600be77e3aa04123cab25e1453c2eab980d496 Mon Sep 17 00:00:00 2001 From: df Date: Tue, 20 Oct 2020 18:34:19 +0000 Subject: [PATCH] Retry access in case the settings database is locked --- webif/lib/settings.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webif/lib/settings.class b/webif/lib/settings.class index ac7c6d51..f5edda2d 100644 --- a/webif/lib/settings.class +++ b/webif/lib/settings.class @@ -60,7 +60,7 @@ proc {settings _safer_query} { queryText args } { # allow 4 tries from 0.5s delay, doubling, to get access for {set lockCnt 4; set delay 0.5} {true} {sleep $delay; set delay $(2*$delay)} { try { - return [$settingsdb query $queryText {*}$arg] + return [$settingsdb query $queryText {*}$args] } on error {msg opts} { if {[string first "database is locked" $msg] >= 0} { if {[incr lockCnt -1] > 0} {