Skip to content

Commit

Permalink
fix(voice): Add missing callback to OggOpusTransformer _final (#1505)
Browse files Browse the repository at this point in the history
  • Loading branch information
james58899 authored Jun 9, 2024
1 parent cef72ac commit ea0f133
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/voice/streams/OggOpusTransformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ class OggOpusTransformer extends BaseTransformer {
}
}

_final() {
_final(cb) {
if(!this._bitstream) {
this.emit("error", new Error("No Opus stream was found"));
}
cb()
}

_transform(chunk, enc, cb) {
Expand Down

0 comments on commit ea0f133

Please sign in to comment.