Change to 0.5s, doubling for 4 tries

This commit is contained in:
df 2020-10-19 11:44:53 +00:00
parent 13f3b1ccce
commit 42d03e25c6
1 changed files with 2 additions and 2 deletions

View File

@ -57,8 +57,8 @@ class settings {
proc {settings _safer_query} { queryText args } {
global settingsdb
# allow 5 (too many?) tries with 1s (too long?) delay to get access
for {set lockCnt 5} {true} {sleep 1} {
# 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]
} on error {msg opts} {