protocol error check fix

This commit is contained in:
zelig 2015-05-16 15:37:59 +02:00
parent 89df3a4648
commit 30348839c1

View file

@ -304,7 +304,7 @@ func New(config *Config) (*Ethereum, error) {
ChunkStore: eth.netStore, ChunkStore: eth.netStore,
} }
bzzProto, err := bzz.BzzProtocol(eth.netStore) bzzProto, err := bzz.BzzProtocol(eth.netStore)
if err != nil { if err == nil {
protocols = append(protocols, bzzProto) protocols = append(protocols, bzzProto)
} }
} }