mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 04:54:18 +00:00
parent
b68c4e2106
commit
dcdbd02102
@ -1401,7 +1401,12 @@ void SessionImpl::endStartup(ResumeSessionContext *context)
|
||||
context->startupStorage->deleteLater();
|
||||
|
||||
if (context->currentStorageType == ResumeDataStorageType::Legacy)
|
||||
Utils::Fs::removeFile(dbPath);
|
||||
{
|
||||
connect(context->startupStorage, &QObject::destroyed, [dbPath]
|
||||
{
|
||||
Utils::Fs::removeFile(dbPath);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
context->deleteLater();
|
||||
|
Loading…
x
Reference in New Issue
Block a user