try to fixx #910

This commit is contained in:
Martin Rotter 2023-04-12 07:57:54 +02:00
parent 14889ea88d
commit 9a25aceaa8
2 changed files with 6 additions and 1 deletions

View File

@ -72,7 +72,8 @@ void FeedDownloader::updateFeeds(const QList<Feed*>& feeds) {
m_feeds.clear(); m_feeds.clear();
if (feeds.isEmpty()) { if (feeds.isEmpty()) {
qDebugNN << LOGSEC_FEEDDOWNLOADER << "No feeds to update in worker thread, aborting update."; qWarningNN << LOGSEC_FEEDDOWNLOADER << "No feeds to update in worker thread, aborting update.";
finalizeUpdate();
} }
else { else {
qDebugNN << LOGSEC_FEEDDOWNLOADER << "Starting feed updates from worker in thread" qDebugNN << LOGSEC_FEEDDOWNLOADER << "Starting feed updates from worker in thread"

View File

@ -85,6 +85,10 @@ void FeedReader::updateFeeds(const QList<Feed*>& feeds) {
} }
} }
if (my_feeds.isEmpty()) {
return;
}
if (!qApp->feedUpdateLock()->tryLock()) { if (!qApp->feedUpdateLock()->tryLock()) {
qApp->showGuiMessage(Notification::Event::GeneralEvent, qApp->showGuiMessage(Notification::Event::GeneralEvent,
{tr("Cannot fetch articles at this point"), {tr("Cannot fetch articles at this point"),