summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-09-02 00:58:31 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-09-02 00:58:31 +0200
commit804ff18a6fe18c98259edaed754d77147346a146 (patch)
tree5832b5830e00265d58780b6a5c8ab8122d038368
parent750243cf2fe12402ea12023786852a7353ac0e2b (diff)
downloadmad-804ff18a6fe18c98259edaed754d77147346a146.tar
mad-804ff18a6fe18c98259edaed754d77147346a146.zip
RequestManager: Answer NOT_IMPLEMENTED when receiving an unknown request
-rw-r--r--src/Common/RequestManager.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Common/RequestManager.cpp b/src/Common/RequestManager.cpp
index 66c06b4..82ecd00 100644
--- a/src/Common/RequestManager.cpp
+++ b/src/Common/RequestManager.cpp
@@ -126,11 +126,9 @@ void RequestManager::receiveHandler(Connection *connection, boost::shared_ptr<co
lock.unlock();
- application->logf(Core::Logger::LOG_ERROR, "Received an unexpected packet with type '%s'.", packet->getType().c_str());
-
XmlPacket ret;
ret.setType("Error");
- ret.set("ErrorCode", Core::Exception::UNEXPECTED_PACKET);
+ ret.set("ErrorCode", Core::Exception::NOT_IMPLEMENTED);
connection->sendPacket(ret, requestId);
}