revid/revid.go: capture error from r.Start() in error handling routine

This commit is contained in:
saxon 2019-01-31 15:49:44 +10:30
parent d53eafe215
commit e18b1f51f0
1 changed files with 1 additions and 1 deletions

View File

@ -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())
}