Add debugging console
This commit is contained in:
@@ -631,10 +631,14 @@ export class MediaManager {
|
||||
try {
|
||||
this.inputGainSourceNode?.disconnect();
|
||||
this.inputGainNode?.disconnect();
|
||||
} catch { /* already disconnected */ }
|
||||
} catch (error) {
|
||||
this.logger.warn('Input gain nodes were already disconnected during teardown', error as any);
|
||||
}
|
||||
|
||||
if (this.inputGainCtx && this.inputGainCtx.state !== 'closed') {
|
||||
this.inputGainCtx.close().catch(() => {});
|
||||
this.inputGainCtx.close().catch((error) => {
|
||||
this.logger.warn('Failed to close input gain audio context', error as any);
|
||||
});
|
||||
}
|
||||
|
||||
this.inputGainCtx = null;
|
||||
|
||||
Reference in New Issue
Block a user