1
0
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:
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
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;