revert close ch order change

This commit is contained in:
William Banfield
2021-09-30 13:42:54 -04:00
parent e28bf9b659
commit 28eacd75c2
+3 -7
View File
@@ -869,13 +869,9 @@ func (r *Reactor) processCh(ch *p2p.Channel, chName string) {
Err: err,
}
}
default:
select {
case <-r.closeCh:
r.Logger.Debug(fmt.Sprintf("stopped listening on %s channel; closing...", chName))
return
default:
}
case <-r.closeCh:
r.Logger.Debug(fmt.Sprintf("stopped listening on %s channel; closing...", chName))
return
}
}
}