1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-10 05:44:25 +00:00

Avoid saving fast resume data twice upon exit under certain conditions

This commit is contained in:
Christophe Dumez 2011-04-17 14:52:25 +00:00
parent d5bdd2ea3e
commit 982098a205

View File

@ -2234,13 +2234,6 @@ void QBtSession::readAlerts() {
// Disabling it for next time // Disabling it for next time
pref.setShutdownWhenDownloadsComplete(false); pref.setShutdownWhenDownloadsComplete(false);
pref.setSuspendWhenDownloadsComplete(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 // Make sure preferences are synced before exiting
if(suspend) if(suspend)
m_shutdownAct = SUSPEND_COMPUTER; m_shutdownAct = SUSPEND_COMPUTER;