mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-05 03:14:44 +00:00
Avoid saving fast resume data twice upon exit under certain conditions
This commit is contained in:
parent
d5bdd2ea3e
commit
982098a205
@ -2234,13 +2234,6 @@ void QBtSession::readAlerts() {
|
||||
// Disabling it for next time
|
||||
pref.setShutdownWhenDownloadsComplete(false);
|
||||
pref.setSuspendWhenDownloadsComplete(false);
|
||||
#if LIBTORRENT_VERSION_MINOR < 15
|
||||
saveDHTEntry();
|
||||
#endif
|
||||
qDebug("Saving session state");
|
||||
saveSessionState();
|
||||
qDebug("Saving fast resume data");
|
||||
saveFastResumeData();
|
||||
// Make sure preferences are synced before exiting
|
||||
if(suspend)
|
||||
m_shutdownAct = SUSPEND_COMPUTER;
|
||||
|
Loading…
x
Reference in New Issue
Block a user