make backend die when streaming is done
This commit is contained in:
		| @@ -1225,15 +1225,12 @@ func (self *nntpConnection) handleLine(daemon *NNTPDaemon, code int, line string | ||||
| func (self *nntpConnection) startStreaming(daemon *NNTPDaemon, reader bool, conn *textproto.Conn) { | ||||
| 	self.keepalive = time.NewTicker(time.Minute) | ||||
| 	defer self.keepalive.Stop() | ||||
| 	for { | ||||
| 	err := self.handleStreaming(daemon, conn) | ||||
| 	if err == nil { | ||||
| 		log.Println(self.name, "done with streaming") | ||||
| 			return | ||||
| 	} else { | ||||
| 		log.Println(self.name, "error while streaming:", err) | ||||
| 	} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // scrape all posts in a newsgroup | ||||
|   | ||||
		Reference in New Issue
	
	Block a user