Compare commits
3 Commits
f81bb8ce61
...
b00d217400
Author | SHA1 | Date |
---|---|---|
Fierelier | b00d217400 | |
Fierelier | bbd7fc1ad6 | |
Fierelier | be2b300afb |
|
@ -44,6 +44,8 @@ heartbeatTime = 600
|
|||
threadCount = 0
|
||||
threadCountLock = threading.Lock()
|
||||
|
||||
fileLock = threading.Lock()
|
||||
|
||||
commands = {}
|
||||
|
||||
def commandlineToList(cmd):
|
||||
|
@ -232,7 +234,12 @@ class connectionThreadIn(threading.Thread):
|
|||
return ["error","nonfatal","command_not_found"]
|
||||
command = commands[cmd[0]]
|
||||
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
|
||||
|
||||
def run(self):
|
||||
|
|
|
@ -6,4 +6,5 @@ def f(self,cmd):
|
|||
|
||||
rtn = cmd[:2] + self.runCommand(cmd[2:])
|
||||
return rtn
|
||||
commands["req"]["function"] = f
|
||||
commands["req"]["function"] = f
|
||||
commands["req"]["sleep"] = 0
|
Loading…
Reference in New Issue