Archived
1
0

Merge pull request #157 from cathugger/master

small sync tweak
This commit is contained in:
Jeff 2018-01-26 13:06:22 -05:00 committed by GitHub
commit ba74a79409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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