add timeout back

This commit is contained in:
chrys 2016-07-17 16:23:02 +02:00
parent c5c281ffd3
commit 87e9cc3310

View File

@ -49,7 +49,8 @@ class fenrir():
time.sleep(0.5)
def handleCommands(self):
if (self.environment['commandInfo']['currCommand'] != ''):
if (self.environment['commandInfo']['currCommand'] != '') and \
time.time() - environment['commandInfo']['lastCommandTime'] > 0.01:
self.environment = self.environment['runtime']['commandManager'].executeCommand(self.environment, self.environment['commandInfo']['currCommand'], 'commands')
def shutdown(self):