revid: set revid.isRunning to false before waiting, because this is what triggers output routine to be killed.

This commit is contained in:
Saxon 2019-04-14 11:13:17 +09:30
parent 5cd12bff8a
commit b347f2e9d1
1 changed files with 1 additions and 1 deletions

View File

@ -359,8 +359,8 @@ func (r *Revid) Stop() {
if r.cmd != nil && r.cmd.Process != nil { if r.cmd != nil && r.cmd.Process != nil {
r.cmd.Process.Kill() r.cmd.Process.Kill()
} }
r.wg.Wait()
r.setIsRunning(false) r.setIsRunning(false)
r.wg.Wait()
} }
func (r *Revid) Update(vars map[string]string) error { func (r *Revid) Update(vars map[string]string) error {