fixed ticker leak in msgserver
@@ -74,8 +74,8 @@ func (p *MessageServer) Close() {
}
func (p *MessageServer) readLoop() {
- for {
timer := time.NewTicker(p.requestLifetime + time.Millisecond*100)
+ for {
select {
case <-p.exit:
p.Debug("shutting down protocol ", p.name)
