Changed client to worker, more correct.
This commit is contained in:
parent
4e04badd65
commit
2f283a4338
|
|
@ -209,7 +209,7 @@ class sys_command():#Thread):
|
|||
self.cmd = shlex.split(cmd)
|
||||
self.args = args
|
||||
self.kwargs = kwargs
|
||||
if not 'client' in self.kwargs: self.kwargs['client'] = None
|
||||
if not 'worker' in self.kwargs: self.kwargs['worker'] = None
|
||||
self.callback = callback
|
||||
self.pid = None
|
||||
self.exit_code = None
|
||||
|
|
@ -315,7 +315,7 @@ class sys_command():#Thread):
|
|||
log(self.cmd[0],'gave:', output.decode('UTF-8'), origin='spawn', level=4)
|
||||
|
||||
if 'on_output' in self.kwargs:
|
||||
self.kwargs['on_output'](self.kwargs['client'], output)
|
||||
self.kwargs['on_output'](self.kwargs['worker'], output)
|
||||
|
||||
lower = output.lower()
|
||||
broke = False
|
||||
|
|
|
|||
Loading…
Reference in New Issue