diff options
Diffstat (limited to 'src/Common/RequestHandler.cpp')
-rw-r--r-- | src/Common/RequestHandler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Common/RequestHandler.cpp b/src/Common/RequestHandler.cpp index 218155d..91ddce6 100644 --- a/src/Common/RequestHandler.cpp +++ b/src/Common/RequestHandler.cpp @@ -23,12 +23,14 @@ namespace Mad { namespace Common { +RequestHandler::RequestHandler(Application *application0) : application(application0), finished(application) {} + Connection* RequestHandler::getConnection() const { - return RequestManager::get()->requestMap.getRequestInfo(this).first; + return getRequestManager()->requestMap.getRequestInfo(this).first; } void RequestHandler::sendPacket(const XmlPacket &packet) { - std::pair<Connection*, boost::uint16_t> requestInfo = RequestManager::get()->requestMap.getRequestInfo(this); + std::pair<Connection*, boost::uint16_t> requestInfo = getRequestManager()->requestMap.getRequestInfo(this); if(!requestInfo.first) return; |