Browse Source

Delay saving session statistics

Pausing the libtorrent session should be scheduled before this.
adaptive-webui-19844
Chocobo1 2 years ago
parent
commit
a325ab8d6e
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 7
      src/base/bittorrent/sessionimpl.cpp

7
src/base/bittorrent/sessionimpl.cpp

@ -1030,11 +1030,12 @@ void SessionImpl::setGlobalMaxSeedingMinutes(int minutes) @@ -1030,11 +1030,12 @@ void SessionImpl::setGlobalMaxSeedingMinutes(int minutes)
// Main destructor
SessionImpl::~SessionImpl()
{
saveStatistics();
// Do some BT related saving
// Do some bittorrent related saving
// After this, (ideally) no more important alerts will be generated/handled
saveResumeData();
saveStatistics();
// We must delete FilterParserThread
// before we delete lt::session
delete m_filterParser;

Loading…
Cancel
Save