mirror of https://bitbucket.org/ausocean/av.git
cmd/revid-cli: not expecting error from revid.Stop() in revid-cli anymore:
This commit is contained in:
parent
c3f846379d
commit
3c273adf4c
|
@ -96,9 +96,7 @@ func main() {
|
||||||
cfg.Logger.Log(logger.Fatal, pkg+"failed to start revid", "error", err.Error())
|
cfg.Logger.Log(logger.Fatal, pkg+"failed to start revid", "error", err.Error())
|
||||||
}
|
}
|
||||||
time.Sleep(*runDurationPtr)
|
time.Sleep(*runDurationPtr)
|
||||||
if err = rv.Stop(); err != nil {
|
rv.Stop()
|
||||||
cfg.Logger.Log(logger.Error, pkg+"failed to stop revid before program termination", "error", err.Error())
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -360,10 +358,7 @@ func run(cfg revid.Config) error {
|
||||||
}
|
}
|
||||||
time.Sleep(time.Duration(rv.Config().BurstPeriod) * time.Second)
|
time.Sleep(time.Duration(rv.Config().BurstPeriod) * time.Second)
|
||||||
log.Log(logger.Info, pkg+"Stopping burst...")
|
log.Log(logger.Info, pkg+"Stopping burst...")
|
||||||
err = rv.Stop()
|
rv.Stop()
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
ns.SetMode(paused, &vs)
|
ns.SetMode(paused, &vs)
|
||||||
}
|
}
|
||||||
sleep:
|
sleep:
|
||||||
|
|
Loading…
Reference in New Issue