mirror of https://bitbucket.org/ausocean/av.git
revid/revid.go: capture error from r.Start() in error handling routine
This commit is contained in:
parent
d53eafe215
commit
e18b1f51f0
|
@ -194,7 +194,7 @@ func New(c Config, ns *netsender.Sender) (*Revid, error) {
|
|||
if err != nil {
|
||||
r.config.Logger.Log(logger.Fatal, pkg+"failed to stop", "error", err.Error())
|
||||
}
|
||||
r.Start()
|
||||
err = r.Start()
|
||||
if err != nil {
|
||||
r.config.Logger.Log(logger.Fatal, pkg+"failed to restart", "error", err.Error())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue