mirror of
https://github.com/Hopiu/xapian-haystack.git
synced 2026-03-16 22:20:31 +00:00
Set database = None to force closing at the end of the update call.
This commit is contained in:
parent
0442a35594
commit
fce97acf33
1 changed files with 3 additions and 0 deletions
|
|
@ -259,6 +259,9 @@ class SearchBackend(BaseSearchBackend):
|
|||
except UnicodeDecodeError:
|
||||
sys.stderr.write('Chunk failed.\n')
|
||||
pass
|
||||
|
||||
finally:
|
||||
database = None
|
||||
|
||||
def remove(self, obj):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue