Archived
1
0
This commit is contained in:
Jeff Becker 2017-10-31 12:03:15 -04:00
parent f11f67190c
commit 882da39b87
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -1546,8 +1546,8 @@ func (self *nntpConnection) requestArticle(daemon *NNTPDaemon, conn *textproto.C
func (self *nntpConnection) startReader(daemon *NNTPDaemon, conn *textproto.Conn) { func (self *nntpConnection) startReader(daemon *NNTPDaemon, conn *textproto.Conn) {
log.Println(self.name, "run reader mode") log.Println(self.name, "run reader mode")
for {
var err error var err error
for err == nil {
select { select {
case chnl := <-self.die: case chnl := <-self.die:
// we were asked to die // we were asked to die
@ -1563,7 +1563,6 @@ func (self *nntpConnection) startReader(daemon *NNTPDaemon, conn *textproto.Conn
self.messageSetProcessed(msgid) self.messageSetProcessed(msgid)
if err != nil { if err != nil {
log.Println(self.name, "error while in reader mode:", err) log.Println(self.name, "error while in reader mode:", err)
break
} }
} }
} }