Browse Source

Correctly destroy startup resume data storage

PR #17930.
adaptive-webui-19844
Vladimir Golovnev 2 years ago committed by GitHub
parent
commit
bb2caabd61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/base/bittorrent/sessionimpl.cpp

2
src/base/bittorrent/sessionimpl.cpp

@ -1387,7 +1387,7 @@ void SessionImpl::endStartup(ResumeSessionContext *context)
saveTorrentsQueue(); saveTorrentsQueue();
const Path dbPath = context->startupStorage->path(); const Path dbPath = context->startupStorage->path();
delete context->startupStorage; context->startupStorage->deleteLater();
if (context->currentStorageType == ResumeDataStorageType::Legacy) if (context->currentStorageType == ResumeDataStorageType::Legacy)
Utils::Fs::removeFile(dbPath); Utils::Fs::removeFile(dbPath);

Loading…
Cancel
Save