Fix removal of calling function from func_map
am: 97efc3a611

* commit '97efc3a61169940d19cbc839bd6cf6b21d800c11':
  Fix removal of calling function from func_map
diff --git a/sl4n/utils/command_receiver.cpp b/sl4n/utils/command_receiver.cpp
index 4452db8..17b2da4 100644
--- a/sl4n/utils/command_receiver.cpp
+++ b/sl4n/utils/command_receiver.cpp
@@ -52,6 +52,12 @@
   } else if (doc.HasMember(sl4n::kMethodStr)) {
     cmd = doc[sl4n::kMethodStr].GetString();
   }
+
+  function_map::const_iterator iter = _funcMap->find(cmd);
+  if (iter != _funcMap->end()) {
+    iter->second(doc);
+  }
+  _clean_result(doc);
 }
 
 void CommandReceiver::RegisterCommand(std::string name, MFP command) {