Skip to content

Commit

Permalink
discv5: fixed state machine lockup bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zsfelfoldi committed Nov 11, 2016
1 parent 80ea44c commit 09baeec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions p2p/discv5/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,9 @@ func init() {
name: "verifywait",
handle: func(net *Network, n *Node, ev nodeEvent, pkt *ingressPacket) (*nodeState, error) {
switch ev {
case pingPacket:
net.handlePing(n, pkt)
return verifywait, nil
case pongPacket:
err := net.handleKnownPong(n, pkt)
return known, err
Expand Down

0 comments on commit 09baeec

Please sign in to comment.