Free lock when state is deleted

This commit is contained in:
Ivan Kravets
2019-07-02 00:45:35 +03:00
parent 5afaa6d0ee
commit bf9552bd56

View File

@ -129,6 +129,9 @@ class State(object):
if hasattr(self, "_lockfile") and self._lockfile:
self._lockfile.release()
def __del__(self):
self._unlock_state_file()
# Dictionary Proxy
def as_dict(self):