Skip to content

Commit

Permalink
Fixed error return
Browse files Browse the repository at this point in the history
  • Loading branch information
kayrus committed Jul 21, 2016
1 parent 294ddd5 commit 5f68732
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion embed/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ func StartEtcd(inCfg *Config) (e *Etcd, err error) {
e.errc = make(chan error, len(e.Peers)+len(e.Clients)+2*len(e.sctxs))

e.Server.Start()
e.serve()
if err = e.serve(); err != nil {
return
}
<-e.Server.ReadyNotify()
return
}
Expand Down

0 comments on commit 5f68732

Please sign in to comment.