Skip to content

Commit

Permalink
clean up containers
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Nov 14, 2024
1 parent 6007e00 commit 255eb3d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pwnshop/challenge.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ def __init_subclass__(cls, register=True):
if register and getattr(cls_module, "PWNSHOP_AUTOREGISTER", True):
register_challenge(cls)

def __del__(self):
if self._build_container:
self._build_container.kill()
if self._verify_container:
self._verify_container.kill()

@property
def TEMPLATE_PATH(self):
raise NotImplementedError()
Expand Down

0 comments on commit 255eb3d

Please sign in to comment.