don't wait for acquis tomb if we have no sources (#868)
This commit is contained in:
parent
34a4371dde
commit
cedfca07c2
1 changed files with 7 additions and 3 deletions
|
@ -241,7 +241,11 @@ func StartAcquisition(sources []DataSource, output chan types.Event, AcquisTomb
|
|||
return nil
|
||||
})
|
||||
}
|
||||
/*return only when acquisition is over (cat) or never (tail)*/
|
||||
err := AcquisTomb.Wait()
|
||||
return err
|
||||
// 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