mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 03:26:05 -04:00
Handle exceptions from kiwix::Downloader::close()
This commit is contained in:
parent
ccccc80dfe
commit
11cdeb9faa
@ -125,7 +125,12 @@ KiwixApp::~KiwixApp()
|
||||
{
|
||||
m_server.stop();
|
||||
if (mp_downloader) {
|
||||
mp_downloader->close();
|
||||
try {
|
||||
mp_downloader->close();
|
||||
} catch (const std::exception& err) {
|
||||
std::cerr << "ERROR: Failed to save the downloader state: "
|
||||
<< err.what() << std::endl;
|
||||
}
|
||||
delete mp_downloader;
|
||||
}
|
||||
if (mp_manager) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user