p2p/discover: fix shutdown hang

This commit is contained in:
Felix Lange 2024-04-18 10:22:14 +02:00
parent fad3fe7853
commit f2ac6927ab

View file

@ -309,7 +309,7 @@ func (tab *Table) addSeenNode(n *node) {
select {
case tab.addNodeCh <- req:
<-tab.addNodeHandled
case <-tab.closed:
case <-tab.closeReq:
}
}
@ -326,7 +326,7 @@ func (tab *Table) addVerifiedNode(n *node) {
select {
case tab.addNodeCh <- req:
<-tab.addNodeHandled
case <-tab.closed:
case <-tab.closeReq:
}
}