mirror of https://github.com/kiwix/libkiwix.git
Downloader::close() pauses all downloads
Otherwise, creating a Downloader object next time may take very long (or that operation may get stuck) if an active download is being saved to slow media.
This commit is contained in:
parent
af96b19bd1
commit
c46cd403ae
|
@ -117,6 +117,9 @@ Aria2::Aria2():
|
|||
|
||||
void Aria2::close()
|
||||
{
|
||||
MethodCall methodCall("aria2.pauseAll", m_secret);
|
||||
doRequest(methodCall);
|
||||
|
||||
saveSession();
|
||||
shutdown();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue