#define TMP_SHORTER_URL_OFFSET 0xFE
#define TMP_SHORTER_URLS 0xFD
+time_t last_run = 0L;
+
pthread_mutex_t RSSQueueMutex; /* locks the access to the following vars: */
HashList *RSSQueueRooms = NULL; /* rss_room_counter */
HashList *RSSFetchUrls = NULL; /* -> rss_aggregator; ->RefCount access to be locked too. */
}
/*
if (server_shutting_down)
- break; /* TODO */
+ break; / * TODO */
DeleteHashPos(&At);
}
DeleteEntryFromHash(RSSFetchUrls, At);
}
DeleteHashPos(&At);
+ last_run = time(NULL);
}
eNextState FreeNetworkSaveMessage (AsyncIO *IO)
FreeStrBuf(&Ctx->Message);
FreeStrBuf(&Ctx->MsgGUID);
free(Ctx);
+ last_run = time(NULL);
return eAbort;
}
long len;
const char *Key;
- /* Run no more than once every 15 minutes. * /
+ /* Run no more than once every 15 minutes. */
if ((time(NULL) - last_run) < 900) {
return;
}
-*/
+
/*
* This is a simple concurrency check to make sure only one rssclient run
* is done at a time. We could do this with a mutex, but since we