RSSClient: properly abort loop for setting state in RSS feeds configured in multiple...
authorWilfried Goesgens <dothebart@citadel.org>
Thu, 16 May 2013 20:18:04 +0000 (22:18 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Thu, 16 May 2013 20:18:04 +0000 (22:18 +0200)
citadel/modules/rssclient/serv_rssclient.c

index 514ba1afd05b751131d5c3261bb1764ec7c493dc..dfed6bc992d878905ef5b9c00ec91a5e64d46979 100644 (file)
@@ -539,8 +539,10 @@ eNextState RSSAggregator_AnalyseReply(AsyncIO *IO)
                if (it != NULL)
                {
                        void *vptr;
-                       GetNextHashPos(Ctx->OtherQRnumbers, it, &len, &Key, &vptr);
-                       pCfg = vptr;
+                       if (GetNextHashPos(Ctx->OtherQRnumbers, it, &len, &Key, &vptr))
+                               pCfg = vptr;
+                       else
+                               pCfg = NULL;
                }
                else 
                        pCfg = NULL;
@@ -589,6 +591,7 @@ eNextState RSSAggregator_AnalyseReply(AsyncIO *IO)
 
 eNextState RSSAggregator_FinishHttp(AsyncIO *IO)
 {
+       StopCurlWatchers(IO);
        return QueueDBOperation(IO, RSSAggregator_AnalyseReply);
 }