Skip to content

Commit c34f847

Browse files
authored
Prevent on_complete execution for matched signatures (kevoreilly#2758)
1 parent 4c9ed23 commit c34f847

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/cuckoo/core/plugins.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,8 @@ def run(self, test_signature: str = False):
683683
result = False
684684

685685
if result:
686+
if hasattr(sig, "on_complete"):
687+
log.debug("Signature: %s is matched! on_complete won't be executed!", sig.name)
686688
sig.matched = True
687689

688690
# Call the stop method on all remaining instances.

0 commit comments

Comments
 (0)