From a4444f75820d13893b4961ed771ad3e0370dc59d Mon Sep 17 00:00:00 2001 From: Prabhu Ramachandran Date: Thu, 26 Sep 2024 18:56:25 +0530 Subject: [PATCH] Remove the lock file before releasing it. --- compyle/ext_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compyle/ext_module.py b/compyle/ext_module.py index e6d13f4..c0a1646 100644 --- a/compyle/ext_module.py +++ b/compyle/ext_module.py @@ -163,9 +163,9 @@ def _lock(self, timeout=90): try: yield finally: - self.lck.release() if exists(self.lock_path): os.remove(self.lock_path) + self.lck.release() def _write_source(self, path): if not exists(path):