mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
swarm/pss: Added missing symkey mutex unlock
This commit is contained in:
parent
41d3011ebe
commit
f5f89b1010
1 changed files with 1 additions and 0 deletions
|
|
@ -222,6 +222,7 @@ func (self *Protocol) AddPeer(p *p2p.Peer, run func(*p2p.Peer, p2p.MsgReadWriter
|
|||
if _, ok := self.Pss.symKeyPool[key]; !ok {
|
||||
return nil, fmt.Errorf("symkey does not exist: %s", key)
|
||||
}
|
||||
self.Pss.symKeyPoolMu.Unlock()
|
||||
self.symKeyRWPool[key] = rw
|
||||
}
|
||||
go func() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue