From 882da39b87f7aada8b05eef993b827288164212b Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 31 Oct 2017 12:03:15 -0400 Subject: [PATCH] try fix --- contrib/backends/srndv2/src/srnd/nntp.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contrib/backends/srndv2/src/srnd/nntp.go b/contrib/backends/srndv2/src/srnd/nntp.go index 399cb46..2d61fb2 100644 --- a/contrib/backends/srndv2/src/srnd/nntp.go +++ b/contrib/backends/srndv2/src/srnd/nntp.go @@ -1546,8 +1546,8 @@ func (self *nntpConnection) requestArticle(daemon *NNTPDaemon, conn *textproto.C func (self *nntpConnection) startReader(daemon *NNTPDaemon, conn *textproto.Conn) { log.Println(self.name, "run reader mode") - for { - var err error + var err error + for err == nil { select { case chnl := <-self.die: // we were asked to die @@ -1563,7 +1563,6 @@ func (self *nntpConnection) startReader(daemon *NNTPDaemon, conn *textproto.Conn self.messageSetProcessed(msgid) if err != nil { log.Println(self.name, "error while in reader mode:", err) - break } } }