Keep need commit status if commit failed
This commit is contained in:
parent
9aa599f9d2
commit
52ac972332
1 changed files with 3 additions and 2 deletions
|
@ -33,8 +33,9 @@ def dbCommitCheck():
|
|||
if not db.need_commit:
|
||||
continue
|
||||
|
||||
db.commit("Interval")
|
||||
db.need_commit = False
|
||||
success = db.commit("Interval")
|
||||
if success:
|
||||
db.need_commit = False
|
||||
time.sleep(0.1)
|
||||
|
||||
def dbCloseAll():
|
||||
|
|
Loading…
Reference in a new issue