* move initialization of context to the top
[citadel.git] / citadel / modules / rssclient / serv_rssclient.c
index de4c48cfc66807f00a78449b9cd87d5ce8c09843..c69f6b4ad44f36340033c1b7e1c97480780335bb 100644 (file)
@@ -902,6 +902,7 @@ void *rssclient_scan(void *args) {
                CtdlThreadSchedule ("RSS Client", CTDLTHREAD_BIGSTACK, rssclient_scan, NULL, last_run + config.c_net_freq);
        else
                CtdlLogPrintf(CTDL_DEBUG, "rssclient: Task STOPPED.\n");
+       CtdlClearSystemContext();
        return NULL;
 }