Some updates for news
This commit is contained in:
@@ -205,7 +205,6 @@ void ScanNews(void)
|
||||
|
||||
while (fread(&Msgs, Msgshdr.recsize, 1, pAreas) == 1) {
|
||||
fseek(pAreas, Msgshdr.syssize, SEEK_CUR);
|
||||
// Syslog('m', "Check newsgroup: %s %d", Msgs.Newsgroup, Msgs.Type);
|
||||
if ((Msgs.Active) && strlen(Msgs.Newsgroup) && (Msgs.Type == NEWS)) {
|
||||
if (IsSema((char *)"upsalarm")) {
|
||||
Syslog('+', "Detected upsalarm semafore, aborting newsscan");
|
||||
@@ -237,6 +236,9 @@ void ScanNews(void)
|
||||
free(tmp->field);
|
||||
free(tmp);
|
||||
}
|
||||
|
||||
nntp_close();
|
||||
|
||||
do_flush = TRUE;
|
||||
if (!do_quiet)
|
||||
printf("\r \r");
|
||||
|
Reference in New Issue
Block a user