mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
p2p/discv5: fixed talkResponse send condition
This commit is contained in:
parent
91b69d08da
commit
936328ff68
1 changed files with 1 additions and 1 deletions
|
|
@ -1372,7 +1372,7 @@ func (q *talkQuery) start(net *Network) bool {
|
|||
if q.remote == net.tab.self {
|
||||
return false
|
||||
}
|
||||
if q.remote.state.canQuery {
|
||||
if q.remote.state == known {
|
||||
net.talkResponseSubLock.Lock()
|
||||
hash := net.conn.send(q.remote, talkRequestPacket, talkRequest{TalkID: []byte(q.talkID), Payload: q.payload})
|
||||
q.key = string(q.remote.sha[:]) + string(hash[:])
|
||||
|
|
|
|||
Loading…
Reference in a new issue