don't wait for acquis tomb if we have no sources (#868)
This commit is contained in:
parent
34a4371dde
commit
cedfca07c2
|
@ -241,7 +241,11 @@ func StartAcquisition(sources []DataSource, output chan types.Event, AcquisTomb
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
/*return only when acquisition is over (cat) or never (tail)*/
|
// Don't wait if we have no sources, as it will hang forever
|
||||||
err := AcquisTomb.Wait()
|
if len(sources) > 0 {
|
||||||
return err
|
/*return only when acquisition is over (cat) or never (tail)*/
|
||||||
|
err := AcquisTomb.Wait()
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue