Skip to content

Commit

Permalink
do not reconnect after EOS (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 authored Aug 15, 2023
1 parent e20f32d commit 40f2969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pipeline/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (p *Pipeline) handleMessageError(gErr *gst.GError) error {

switch {
case element == elementGstRtmp2Sink:
if strings.HasPrefix(gErr.Error(), "Connection error") {
if strings.HasPrefix(gErr.Error(), "Connection error") && !p.eosSent.IsBroken() {
// try reconnecting
ok, err := p.out.ResetStream(name, gErr)
if err != nil {
Expand Down

0 comments on commit 40f2969

Please sign in to comment.