From 653f89fa3b236103670796af4b76a23e8ae84248 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 3 Aug 2017 22:16:47 +0300 Subject: Always unload dbs and remove net handlers. --- src/client.cpp | 1 + src/net/net.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/client.cpp b/src/client.cpp index e050bf5cd..21f44d66a 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1925,6 +1925,7 @@ void Client::loadData() void Client::unloadData() { + DbManager::unloadDb(); mCurrentServer.supportUrl.clear(); settings.supportUrl.clear(); if (settings.options.dataPath.empty()) 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) -- cgit v1.2.3-70-g09d2