Skip to content

Commit

Permalink
Don't panic on stream reset
Browse files Browse the repository at this point in the history
  • Loading branch information
mengelbart committed Jun 27, 2024
1 parent 32281d4 commit a0029b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion remote_track.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ func (t *RemoteTrack) readObjectStream(p *wire.ObjectStreamParser) {
if err == io.EOF {
return
}
panic(err)
t.logger.Info("stream canceled by peer", "error", err)
return
}
t.logger.Info("object stream got object", "msg", msg)
t.push(Object{
Expand Down

0 comments on commit a0029b3

Please sign in to comment.