Skip to content

Commit

Permalink
fix(client): set delay to 5ms if packet is null in audio source job
Browse files Browse the repository at this point in the history
probably fixes #421
  • Loading branch information
Apehum committed Oct 9, 2024
1 parent 3993993 commit b0b91dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ abstract class BaseClientAudioSource<T>(
while (isActive) {
val wrappedPacket = buffer.poll()
if (wrappedPacket == null) {
delay(0L)
delay(5L)
continue
}

Expand Down

0 comments on commit b0b91dd

Please sign in to comment.