summaryrefslogtreecommitdiffstats
path: root/src/Common
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2008-11-20 17:02:39 +0100
committerMatthias Schiffer <matthias@gamezock.de>2008-11-20 17:02:39 +0100
commite17b967c6195b074af03fad14b0b2947c53536e2 (patch)
tree9683d2e24429179ed3cc856b208cf9835b8aff8e /src/Common
parentd002476c5e6b8f6bc728063fc8e7ce74da562e57 (diff)
downloadmad-e17b967c6195b074af03fad14b0b2947c53536e2.tar
mad-e17b967c6195b074af03fad14b0b2947c53536e2.zip
Paket-Typen korrekt deregistrieren
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/RequestManager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Common/RequestManager.cpp b/src/Common/RequestManager.cpp
index 3dfd1cf..cc846c6 100644
--- a/src/Common/RequestManager.cpp
+++ b/src/Common/RequestManager.cpp
@@ -154,6 +154,8 @@ RequestManager::RequestManager() : core(false), requestId(-1) {
}
RequestManager::~RequestManager() {
+ unregisterPacketType(Net::Packet::DISCONNECT);
+
for(std::map<Net::Connection*,RequestMap*>::iterator it = requestMaps.begin(); it != requestMaps.end(); ++it)
delete it->second;