Skip to content

Commit

Permalink
Disconnect broadcaster in case of a segmentation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
j0sh committed Jun 12, 2018
1 parent 15e5e7a commit 26f26ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/mediaserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ func gotRTMPStreamHandler(s *LivepeerServer) func(url *url.URL, rtmpStrm stream.
if err := s.LivepeerNode.BroadcastFinishMsg(hlsStrmID.String()); err != nil {
glog.Errorf("Error broadcaseting finish message: %v", err)
}
// Stop the incoming RTMP connection.
// TODO retry segmentation if err != SegmenterTimeout; may be recoverable
rtmpStrm.Close()
}
}(broadcaster, rtmpStrm)

Expand Down

0 comments on commit 26f26ca

Please sign in to comment.