chore: cleanup pid code

This commit is contained in:
Manuel Schmid
2024-01-22 21:20:17 +01:00
parent 21f4767c65
commit 031b1f8b11
2 changed files with 20 additions and 15 deletions
+1 -1
View File
@@ -869,7 +869,7 @@ def worker():
task.yields.append(['finish', task.results])
finally:
if pid in modules.patch.patch_settings:
del modules.patch.patch_settings[os.getpid()]
del modules.patch.patch_settings[pid]
pass