diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-17 23:55:20 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-17 23:55:20 +0800 |
commit | 11e12680ebe4f4679083317ee0f2c27b219d44b3 (patch) | |
tree | adcfd20c19eee61b219cae2652f2dc0aa45da73f | |
parent | 13c00afc68652d517f91313bb8c3eeb206d23f22 (diff) | |
parent | 5022b618aa73e29decf19399d78190a06bdda81d (diff) | |
download | dexon-11e12680ebe4f4679083317ee0f2c27b219d44b3.tar dexon-11e12680ebe4f4679083317ee0f2c27b219d44b3.tar.gz dexon-11e12680ebe4f4679083317ee0f2c27b219d44b3.tar.bz2 dexon-11e12680ebe4f4679083317ee0f2c27b219d44b3.tar.lz dexon-11e12680ebe4f4679083317ee0f2c27b219d44b3.tar.xz dexon-11e12680ebe4f4679083317ee0f2c27b219d44b3.tar.zst dexon-11e12680ebe4f4679083317ee0f2c27b219d44b3.zip |
Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop
-rw-r--r-- | p2p/discover/udp.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/p2p/discover/udp.go b/p2p/discover/udp.go index b2a895442..69e9f3c2e 100644 --- a/p2p/discover/udp.go +++ b/p2p/discover/udp.go @@ -253,7 +253,8 @@ func (t *udp) loop() { case reply := <-t.replies: // run matching callbacks, remove if they return false. - for i, p := range pending { + for i := 0; i < len(pending); i++ { + p := pending[i] if reply.from == p.from && reply.ptype == p.ptype && p.callback(reply.data) { p.errc <- nil copy(pending[i:], pending[i+1:]) |