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 a569f72 commit 5169e0a
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 @@ -78,12 +78,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 5169e0a

Please sign in to comment.