core: have QubesVmCollection.unlock_db no-op if not locked
This commit is contained in:
parent
cc3ab7aaa1
commit
2fdbf51ccc
@ -651,6 +651,8 @@ class QubesVmCollection(dict):
|
||||
self.qubes_store_file.close()
|
||||
|
||||
def unlock_db(self):
|
||||
if self.qubes_store_file is None:
|
||||
return
|
||||
# intentionally do not call explicit unlock to not unlock the file
|
||||
# before all buffers are flushed
|
||||
self.log.debug('unlock_db()')
|
||||
|
Loading…
Reference in New Issue
Block a user