Changed client to worker, more correct.

This commit is contained in:
Anton Hvornum 2020-03-15 20:45:56 +00:00
parent 4e04badd65
commit 2f283a4338
1 changed files with 2 additions and 2 deletions

View File

@ -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