Add set-able command sleep time
This commit is contained in:
parent
be2b300afb
commit
bbd7fc1ad6
@ -234,7 +234,12 @@ class connectionThreadIn(threading.Thread):
|
|||||||
return ["error","nonfatal","command_not_found"]
|
return ["error","nonfatal","command_not_found"]
|
||||||
command = commands[cmd[0]]
|
command = commands[cmd[0]]
|
||||||
rtn = command["function"](self,cmd)
|
rtn = command["function"](self,cmd)
|
||||||
time.sleep(pauseBetweenCommands)
|
|
||||||
|
sleep = pauseBetweenCommands
|
||||||
|
if "sleep" in command:
|
||||||
|
sleep = command["sleep"]
|
||||||
|
if sleep > 0: time.sleep(sleep)
|
||||||
|
|
||||||
return rtn
|
return rtn
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user