From 1de8d4995d52567142bec0f38b4965ba866199ac Mon Sep 17 00:00:00 2001 From: Peter Soetens Date: Thu, 29 Jan 2009 11:08:25 +0100 Subject: [PATCH] Minimal change to avoid double executions (in CommandProcessor::step) of a doubly queued command. --- src/LocalCommand.hpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/LocalCommand.hpp b/src/LocalCommand.hpp index b4e3edf..750843b 100644 --- a/src/LocalCommand.hpp +++ b/src/LocalCommand.hpp @@ -226,6 +226,9 @@ namespace RTT } virtual bool execute() { + // do not allow to execute twice or if not queued. + if (!this->maccept || this->mexec) + return false; this->mvalid = this->exec(); this->mexec = true; return this->mvalid; -- 1.6.1.2