Skip to content

Commit

Permalink
Added callback attribute on thread.py __init__. Using this you call e…
Browse files Browse the repository at this point in the history
…xternal processes inside the payload

Normally this addon will not brake existing code
  • Loading branch information
SoulRaven committed Jun 29, 2024
1 parent 3f83fb9 commit 1b00b76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sgzenity/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@

class WorkerThread(threading.Thread):

def __init__(self, data=None):
def __init__(self, data=None, callback=None):
threading.Thread.__init__(self)
self.data = data
self.callback = callback
self.stop = False

def run(self):
Expand Down

0 comments on commit 1b00b76

Please sign in to comment.