mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-21 02:51:26 -04:00
Merge pull request #1081 from kiwix/kiwix_Downloader_close_may_throw
Handling of exceptions from kiwix::Downloader::close()
This commit is contained in:
commit
0b18cc6a32
@ -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