ensure tail routine dies as well

This commit is contained in:
Thibault bui Koechlin 2020-06-17 11:18:08 +02:00
parent 94d80c97ae
commit 99b30f1e62

View file

@ -238,6 +238,9 @@ LOOP:
select {
case <-AcquisTomb.Dying(): //we are being killed by main
clog.Infof("Killing acquistion routine")
if err := ctx.tail.Stop(); err != nil {
clog.Warningf("error in stop : %s", err)
}
break LOOP
case <-ctx.tail.Tomb.Dying(): //our tailer is dying
clog.Warningf("Reader is dying/dead")