[pim/libgravatar] src/job: Avoid to call deleteLater twice

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 4c6c2f592ff83044128b60e6c3facf72875d1fc2 by Laurent Montel.
Committed on 17/08/2026 at 11:58.
Pushed by mlaurent into branch 'master'.

Avoid to call deleteLater twice

M  +1    -1    src/job/gravatarresolvurljob.cpp

https://invent.kde.org/pim/libgravatar/-/commit/4c6c2f592ff83044128b60e6c3facf72875d1fc2

diff --git a/src/job/gravatarresolvurljob.cpp b/src/job/gravatarresolvurljob.cpp
index 09e4f18..413e6b7 100644
--- a/src/job/gravatarresolvurljob.cpp
+++ b/src/job/gravatarresolvurljob.cpp
@@ -122,7 +122,7 @@ void GravatarResolvUrlJob::processNextBackend()
     Q_EMIT resolvUrl(url);
     if (!cacheLookup(d->mCalculatedHash)) {
         startNetworkManager(url);
-    } else {
+    } else if (!d->mHasGravatar) {
         processNextBackend();
     }
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.