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
|
||||
})
|
||||
}
|
||||
// Don't wait if we have no sources, as it will hang forever
|
||||
if len(sources) > 0 {
|
||||
/*return only when acquisition is over (cat) or never (tail)*/
|
||||
err := AcquisTomb.Wait()
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue