Browse Source

Avoid saving fast resume data twice upon exit under certain conditions

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
982098a205
  1. 7
      src/qtlibtorrent/qbtsession.cpp

7
src/qtlibtorrent/qbtsession.cpp

@ -2234,13 +2234,6 @@ void QBtSession::readAlerts() { @@ -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…
Cancel
Save