From bf9552bd562bc15fe5912631e6da378b2088f7db Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 2 Jul 2019 00:45:35 +0300 Subject: [PATCH] Free lock when state is deleted --- platformio/app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platformio/app.py b/platformio/app.py index a6fd6e45..d1283dec 100644 --- a/platformio/app.py +++ b/platformio/app.py @@ -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):