Less wait for closing cursors

This commit is contained in:
shortcutme 2020-01-22 16:36:52 +01:00
parent 62a2ec7254
commit 835174270e
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ class Db(object):
self.need_commit = False
self.commit("Closing: %s" % reason)
self.log.debug("Close called by %s" % Debug.formatStack())
for i in range(10):
for i in range(5):
if len(self.cursors) == 0:
break
self.log.debug("Pending cursors: %s" % len(self.cursors))