Skip to content

Commit

Permalink
set the timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
nbsp committed Sep 19, 2024
1 parent 2b24e14 commit 7f01628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/livekit-rtc/src/audio_source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class AudioSource {
if (this.timeout) {
clearTimeout(this.timeout);
}
setTimeout(this.releaseQueue.put, this.currentQueueSize);
this.timeout = setTimeout(this.releaseQueue.put, this.currentQueueSize);

const req = new CaptureAudioFrameRequest({
sourceHandle: this.ffiHandle.handle,
Expand Down

0 comments on commit 7f01628

Please sign in to comment.