diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-09-29 18:16:20 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-09-29 18:16:20 +0200 |
commit | 3086f10f53ced17ab4a237ab57da62395d259f0a (patch) | |
tree | ab6b9a8d03930d58637c1d6649b9c144aa1d4c03 /src/Common | |
parent | 6f77ab53ea6ad3cf96b0f04136cf4cfc27b2a6ad (diff) | |
download | mad-3086f10f53ced17ab4a237ab57da62395d259f0a.tar mad-3086f10f53ced17ab4a237ab57da62395d259f0a.zip |
InformationManager zur Verwaltung der Host-Liste hinzugef?gt
Diffstat (limited to 'src/Common')
-rw-r--r-- | src/Common/RequestManager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Common/RequestManager.cpp b/src/Common/RequestManager.cpp index afe72b0..8d0c73c 100644 --- a/src/Common/RequestManager.cpp +++ b/src/Common/RequestManager.cpp @@ -102,8 +102,10 @@ void RequestManager::receiveHandler(Net::Connection *connection, const Net::Pack bool RequestManager::sendRequest(Net::Connection *connection, std::auto_ptr<RequestBase> request) { std::map<Net::Connection*,RequestMap*>::iterator it = requestMaps.find(connection); - if(it == requestMaps.end()) + if(it == requestMaps.end()) { + Logger::log(Logger::CRITICAL, "Trying to send a request over an unregistered connecion."); return false; + } RequestMap *requestMap = it->second; |