Skip to content

Commit

Permalink
fixes issue where url was updated after broadcast was started, #429.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k1o committed Nov 7, 2024
1 parent 2cd4957 commit 5d62e56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/internal/capture/broadcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ func (manager *BroacastManagerCtx) Start(url string) error {
manager.mu.Lock()
defer manager.mu.Unlock()

manager.url = url

err := manager.createPipeline()
if err != nil {
return err
}

manager.url = url
manager.started = true
return nil
}
Expand Down

0 comments on commit 5d62e56

Please sign in to comment.