Archived
1
0

small sync tweak

This commit is contained in:
cathugger 2018-01-26 14:46:59 +00:00
parent 6b039265d9
commit 81653a5415

View File

@ -1372,6 +1372,11 @@ func (self *nntpConnection) scrapeGroup(daemon *NNTPDaemon, conn *textproto.Conn
msgid := parts[4] msgid := parts[4]
// msgid -> reference // msgid -> reference
articles[msgid] = parts[5] articles[msgid] = parts[5]
// incase server returned more articles than we requested
if num, nerr := strconv.ParseUint(parts[0], 10, 64); nerr == nil && num >= lo {
// fix lo so that we wont request them again
lo = num + 1
}
} else { } else {
// probably not valid line // probably not valid line
// ignore // ignore