ensure tail routine dies as well
This commit is contained in:
parent
94d80c97ae
commit
99b30f1e62
1 changed files with 3 additions and 0 deletions
|
@ -238,6 +238,9 @@ LOOP:
|
||||||
select {
|
select {
|
||||||
case <-AcquisTomb.Dying(): //we are being killed by main
|
case <-AcquisTomb.Dying(): //we are being killed by main
|
||||||
clog.Infof("Killing acquistion routine")
|
clog.Infof("Killing acquistion routine")
|
||||||
|
if err := ctx.tail.Stop(); err != nil {
|
||||||
|
clog.Warningf("error in stop : %s", err)
|
||||||
|
}
|
||||||
break LOOP
|
break LOOP
|
||||||
case <-ctx.tail.Tomb.Dying(): //our tailer is dying
|
case <-ctx.tail.Tomb.Dying(): //our tailer is dying
|
||||||
clog.Warningf("Reader is dying/dead")
|
clog.Warningf("Reader is dying/dead")
|
||||||
|
|
Loading…
Add table
Reference in a new issue