summaryrefslogtreecommitdiffstats
path: root/src/Daemon/RequestHandlers/CommandRequestHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Daemon/RequestHandlers/CommandRequestHandler.cpp')
-rw-r--r--src/Daemon/RequestHandlers/CommandRequestHandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Daemon/RequestHandlers/CommandRequestHandler.cpp b/src/Daemon/RequestHandlers/CommandRequestHandler.cpp
index 95e57f1..208d6e0 100644
--- a/src/Daemon/RequestHandlers/CommandRequestHandler.cpp
+++ b/src/Daemon/RequestHandlers/CommandRequestHandler.cpp
@@ -26,8 +26,8 @@ namespace Mad {
namespace Daemon {
namespace RequestHandlers {
-void CommandRequestHandler::handlePacket(const Common::XmlPacket &packet) {
- if(packet.getType() != "Command") {
+void CommandRequestHandler::handlePacket(boost::shared_ptr<const Common::XmlPacket> packet) {
+ if(packet->getType() != "Command") {
Common::Logger::log(Common::Logger::ERROR, "Received an unexpected packet.");
Common::XmlPacket ret;
@@ -43,7 +43,7 @@ void CommandRequestHandler::handlePacket(const Common::XmlPacket &packet) {
// TODO Require authentication
// TODO Error handling
- std::string command = packet["command"];
+ std::string command = (*packet)["command"];
Common::XmlPacket ret;