enabled ExitCommand implementation
authorTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Tue, 6 Dec 2011 07:52:06 +0000 (08:52 +0100)
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Tue, 6 Dec 2011 09:02:05 +0000 (10:02 +0100)
LayerManagerCommands/src/ExitCommand.cpp

index 230e790..4925121 100644 (file)
@@ -23,9 +23,8 @@
 
 ExecutionResult ExitCommand::execute(ICommandExecutor* executor)
 {
-    (void)executor; // TODO: remove, only prevents warning
-    ExecutionResult result = ExecutionFailed; //executor->stopManagement(); //TODO
-    return result;
+    bool result = executor->stopManagement();
+    return result ? ExecutionSuccess : ExecutionFailed;
 }
 
 const std::string ExitCommand::getString()