summaryrefslogtreecommitdiff
path: root/src/net/net.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-03 22:16:47 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-03 22:16:47 +0300
commit653f89fa3b236103670796af4b76a23e8ae84248 (patch)
treeaf2f09cc6523df3c9929b8e6e14f953c3e6ab8ec /src/net/net.cpp
parentaf61285030fa17604a0d3812c679c45cdc8c2a5d (diff)
downloadmanaverse-653f89fa3b236103670796af4b76a23e8ae84248.tar.gz
manaverse-653f89fa3b236103670796af4b76a23e8ae84248.tar.bz2
manaverse-653f89fa3b236103670796af4b76a23e8ae84248.tar.xz
manaverse-653f89fa3b236103670796af4b76a23e8ae84248.zip
Always unload dbs and remove net handlers.
Diffstat (limited to 'src/net/net.cpp')
-rw-r--r--src/net/net.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/net.cpp b/src/net/net.cpp
index 3bd115bf0..02bfd06ce 100644
--- a/src/net/net.cpp
+++ b/src/net/net.cpp
@@ -126,6 +126,7 @@ void connectToServer(const ServerInfo &server)
generalHandler != nullptr)
{
generalHandler->unload();
+ delete2(generalHandler);
}
switch (server.type)