mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 22:03:27 -07:00
Don't access download handler after it's finished
This commit is contained in:
parent
8b330e3ac0
commit
3762514662
1 changed files with 3 additions and 1 deletions
|
@ -124,7 +124,7 @@ void Feed::markAsRead()
|
||||||
|
|
||||||
void Feed::refresh()
|
void Feed::refresh()
|
||||||
{
|
{
|
||||||
if (isLoading())
|
if (m_downloadHandler)
|
||||||
m_downloadHandler->cancel();
|
m_downloadHandler->cancel();
|
||||||
|
|
||||||
// NOTE: Should we allow manually refreshing for disabled session?
|
// NOTE: Should we allow manually refreshing for disabled session?
|
||||||
|
@ -193,6 +193,8 @@ bool Feed::hasError() const
|
||||||
|
|
||||||
void Feed::handleDownloadFinished(const Net::DownloadResult &result)
|
void Feed::handleDownloadFinished(const Net::DownloadResult &result)
|
||||||
{
|
{
|
||||||
|
m_downloadHandler = nullptr; // will be deleted by DownloadManager later
|
||||||
|
|
||||||
if (result.status == Net::DownloadStatus::Success) {
|
if (result.status == Net::DownloadStatus::Success) {
|
||||||
LogMsg(tr("RSS feed at '%1' is successfully downloaded. Starting to parse it.")
|
LogMsg(tr("RSS feed at '%1' is successfully downloaded. Starting to parse it.")
|
||||||
.arg(result.url));
|
.arg(result.url));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue