mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 04:54:18 +00:00
- Save session data and fast resume data sooner on exit (in case)
This commit is contained in:
parent
cddc3a0a43
commit
45efcfce13
@ -241,6 +241,10 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
|
||||
GUI::~GUI() {
|
||||
qDebug("GUI destruction");
|
||||
hide();
|
||||
// Do this as soon as possible
|
||||
BTSession->saveDHTEntry();
|
||||
BTSession->saveSessionState();
|
||||
BTSession->saveFastResumeData();
|
||||
delete dlSpeedLbl;
|
||||
delete upSpeedLbl;
|
||||
delete ratioLbl;
|
||||
|
@ -83,9 +83,10 @@ bittorrent::bittorrent() : DHTEnabled(false), preAllocateAll(false), addInPause(
|
||||
bittorrent::~bittorrent() {
|
||||
qDebug("BTSession deletion");
|
||||
// Do some BT related saving
|
||||
saveDHTEntry();
|
||||
// XXX: Done in GUI now (earlier = safer)
|
||||
/*saveDHTEntry();
|
||||
saveSessionState();
|
||||
saveFastResumeData();
|
||||
saveFastResumeData();*/
|
||||
// Set Session settings
|
||||
session_settings ss;
|
||||
ss.tracker_receive_timeout = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user