mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
p2p/discover: fix shutdown hang
This commit is contained in:
parent
fad3fe7853
commit
f2ac6927ab
1 changed files with 2 additions and 2 deletions
|
|
@ -309,7 +309,7 @@ func (tab *Table) addSeenNode(n *node) {
|
||||||
select {
|
select {
|
||||||
case tab.addNodeCh <- req:
|
case tab.addNodeCh <- req:
|
||||||
<-tab.addNodeHandled
|
<-tab.addNodeHandled
|
||||||
case <-tab.closed:
|
case <-tab.closeReq:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -326,7 +326,7 @@ func (tab *Table) addVerifiedNode(n *node) {
|
||||||
select {
|
select {
|
||||||
case tab.addNodeCh <- req:
|
case tab.addNodeCh <- req:
|
||||||
<-tab.addNodeHandled
|
<-tab.addNodeHandled
|
||||||
case <-tab.closed:
|
case <-tab.closeReq:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue