mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
Fix issues introduced in new Typescript version.
This commit is contained in:
@@ -326,7 +326,8 @@ export default class VoiceClient extends EventEmitter<VoiceEvents> {
|
||||
try {
|
||||
await this.signaling.stopProduce(type);
|
||||
} catch (error) {
|
||||
if (error.error === WSErrorCode.ProducerNotFound) return;
|
||||
// eslint-disable-next-line
|
||||
if ((error as any).error === WSErrorCode.ProducerNotFound) return;
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user