mirror of https://bitbucket.org/ausocean/av.git
revid: stop() no longer returns error, just logs if stop is called when revid is not running.
This commit is contained in:
parent
abe9722350
commit
c9996cbae5
|
@ -357,9 +357,10 @@ func (r *Revid) Start() error {
|
|||
}
|
||||
|
||||
// Stop halts any processing of video data from a camera or file
|
||||
func (r *Revid) Stop() error {
|
||||
func (r *Revid) Stop() {
|
||||
if !r.IsRunning() {
|
||||
return errors.New(pkg + "stop called but revid isn't running")
|
||||
r.config.Logger.Log(logger.Warning, pkg+"stop called but revid isn't running")
|
||||
return
|
||||
}
|
||||
|
||||
r.config.Logger.Log(logger.Info, pkg+"stopping revid")
|
||||
|
@ -371,7 +372,6 @@ func (r *Revid) Stop() error {
|
|||
r.cmd.Process.Kill()
|
||||
}
|
||||
r.wg.Wait()
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Revid) Update(vars map[string]string) error {
|
||||
|
|
Loading…
Reference in New Issue