From 804ff18a6fe18c98259edaed754d77147346a146 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 2 Sep 2009 00:58:31 +0200 Subject: RequestManager: Answer NOT_IMPLEMENTED when receiving an unknown request --- src/Common/RequestManager.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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_ptrlogf(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); } -- cgit v1.2.3