Skip to content

Commit

Permalink
Skip commit if already commiting
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Jan 28, 2020
1 parent 46210b2 commit 2e9cff9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Db/Db.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ def commit(self, reason="Unknown"):
self.log.debug("Commit ignored: No connection")
return False

if self.commiting:
self.log.debug("Commit ignored: Already commiting")
return False

try:
s = time.time()
self.commiting = True
Expand Down

0 comments on commit 2e9cff9

Please sign in to comment.