Browse Source

p2p: sw.peers.List() is empty in sw.OnStart

pull/570/merge
caojingqi 8 years ago
committed by Ethan Buchman
parent
commit
086544e367
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      p2p/switch.go

+ 1
- 4
p2p/switch.go View File

@ -176,10 +176,7 @@ func (sw *Switch) OnStart() error {
return err
}
}
// Start peers
for _, peer := range sw.peers.List() {
sw.startInitPeer(peer)
}
// Start listeners
for _, listener := range sw.listeners {
go sw.listenerRoutine(listener)


Loading…
Cancel
Save