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