fix(call): simplify error handling in audio processing by removing unused catch parameters
Some checks failed
CI / test-backend (push) Successful in 18s
CI / lint (push) Successful in 1m43s
CI / build-frontend (pull_request) Successful in 2m5s
CI / test-backend (pull_request) Successful in 43s
Build and Publish Docker Image / build (pull_request) Has been skipped
CI / test-lang (pull_request) Successful in 1m7s
OSV-Scanner PR Scan / scan-pr (pull_request) Successful in 23s
CI / test-lang (push) Successful in 9m40s
CI / build-frontend (push) Successful in 9m50s
CI / lint (pull_request) Successful in 9m45s
Tests / test (push) Successful in 12m2s
Build Test / Build and Test (push) Successful in 14m17s
Build Test / Build and Test (pull_request) Successful in 14m45s
Build and Publish Docker Image / build-dev (pull_request) Successful in 15m3s
Tests / test (pull_request) Failing after 16m33s
Benchmarks / benchmark (push) Successful in 24m7s
Benchmarks / benchmark (pull_request) Successful in 24m2s

This commit is contained in:
2026-01-04 23:21:26 -06:00
parent 5d13b3e3f9
commit 176642db75

View File

@@ -2373,7 +2373,7 @@ export default {
} else { } else {
this.stopWebAudio(); this.stopWebAudio();
} }
} catch (e) { } catch {
// revert on failure // revert on failure
this.config.telephone_web_audio_enabled = !newVal; this.config.telephone_web_audio_enabled = !newVal;
} }
@@ -2497,7 +2497,9 @@ export default {
if (this.audioProcessor) { if (this.audioProcessor) {
try { try {
this.audioProcessor.disconnect(); this.audioProcessor.disconnect();
} catch (_) {} } catch {
// ignore
}
this.audioProcessor = null; this.audioProcessor = null;
} }
if (this.audioStream) { if (this.audioStream) {
@@ -2507,7 +2509,9 @@ export default {
if (this.audioWs) { if (this.audioWs) {
try { try {
this.audioWs.close(); this.audioWs.close();
} catch (_) {} } catch {
// ignore
}
this.audioWs = null; this.audioWs = null;
} }
if (this.remoteAudioEl) { if (this.remoteAudioEl) {
@@ -2517,13 +2521,17 @@ export default {
if (this.audioWorkletNode) { if (this.audioWorkletNode) {
try { try {
this.audioWorkletNode.disconnect(); this.audioWorkletNode.disconnect();
} catch (_) {} } catch {
// ignore
}
this.audioWorkletNode = null; this.audioWorkletNode = null;
} }
if (this.audioSilentGain) { if (this.audioSilentGain) {
try { try {
this.audioSilentGain.disconnect(); this.audioSilentGain.disconnect();
} catch (_) {} } catch {
// ignore
}
this.audioSilentGain = null; this.audioSilentGain = null;
} }
}, },