From 87e9cc33102984d66fb0d59cfb7dda23dafcb231 Mon Sep 17 00:00:00 2001 From: chrys Date: Sun, 17 Jul 2016 16:23:02 +0200 Subject: [PATCH] add timeout back --- src/fenrir-package/fenrir.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fenrir-package/fenrir.py b/src/fenrir-package/fenrir.py index 77144e6b..fd02d13b 100755 --- a/src/fenrir-package/fenrir.py +++ b/src/fenrir-package/fenrir.py @@ -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):