do not start pipeline when error.

This commit is contained in:
Miroslav Šedivý 2021-02-05 12:41:02 +01:00
parent 58ea3665b0
commit 2b72f43c9e
5 changed files with 29 additions and 8 deletions

View file

@ -32,9 +32,14 @@ func (manager *BroacastManagerCtx) shutdown() {
}
func (manager *BroacastManagerCtx) Start(url string) error {
err := manager.createPipeline()
if err != nil {
return err
}
manager.url = url
manager.enabled = true
return manager.createPipeline()
return nil
}
func (manager *BroacastManagerCtx) Stop() {