forked from platformio/platformio-core
Free lock when state is deleted
This commit is contained in:
@ -129,6 +129,9 @@ class State(object):
|
|||||||
if hasattr(self, "_lockfile") and self._lockfile:
|
if hasattr(self, "_lockfile") and self._lockfile:
|
||||||
self._lockfile.release()
|
self._lockfile.release()
|
||||||
|
|
||||||
|
def __del__(self):
|
||||||
|
self._unlock_state_file()
|
||||||
|
|
||||||
# Dictionary Proxy
|
# Dictionary Proxy
|
||||||
|
|
||||||
def as_dict(self):
|
def as_dict(self):
|
||||||
|
Reference in New Issue
Block a user