summaryrefslogtreecommitdiffstats
path: root/src/Common/Requests/IdentifyRequest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/Requests/IdentifyRequest.cpp')
-rw-r--r--src/Common/Requests/IdentifyRequest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Common/Requests/IdentifyRequest.cpp b/src/Common/Requests/IdentifyRequest.cpp
index 18b515f..54d49e2 100644
--- a/src/Common/Requests/IdentifyRequest.cpp
+++ b/src/Common/Requests/IdentifyRequest.cpp
@@ -25,10 +25,10 @@ namespace Mad {
namespace Common {
namespace Requests {
-bool IdentifyRequest::send(Net::Connection *connection, RequestManager &requestManager, const std::string &hostname0) {
+bool IdentifyRequest::send(Net::Connection *connection, const std::string &hostname0) {
IdentifyRequest *request = new IdentifyRequest(hostname0);
- if(requestManager.sendRequest(connection, request))
+ if(RequestManager::getRequestManager()->sendRequest(connection, request))
return true;
delete request;
@@ -53,8 +53,8 @@ bool IdentifyRequest::handlePacket(Net::Connection*, const Net::Packet &packet)
if(packet.getType() != Net::Packet::OK)
return false; // TODO Logging
- setFinished();
- return true;
+ setFinished();
+ return true;
}
}