Skip to content

Commit

Permalink
fix panic
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 committed Jan 18, 2024
1 parent 5635fc3 commit 281a5c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/jitter/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ func (b *Buffer) drop() {
c = b.head

// break if head is part of a new sample
if b.head.packet.Timestamp != ts {
if b.head == nil || b.head.packet.Timestamp != ts {
break
}
}
Expand Down

0 comments on commit 281a5c7

Please sign in to comment.