Note a potential resource leak
This commit is contained in:
1 parent
1a4b38cf93
commit
2d7e4247f3
1 file changed
+1
@@ -67,6 +67,7 @@ export const trackProcessorSync = (
|
|||||||
videoTrack$: Behavior<LocalVideoTrack | null>,
|
videoTrack$: Behavior<LocalVideoTrack | null>,
|
||||||
processor$: Behavior<ProcessorState>,
|
processor$: Behavior<ProcessorState>,
|
||||||
): void => {
|
): void => {
|
||||||
|
// TODO-MULTI-SFU: Bind to an ObservableScope to avoid leaking resources.
|
||||||
combineLatest([videoTrack$, processor$]).subscribe(
|
combineLatest([videoTrack$, processor$]).subscribe(
|
||||||
([videoTrack, processorState]) => {
|
([videoTrack, processorState]) => {
|
||||||
if (!processorState) return;
|
if (!processorState) return;
|
||||||
|
|||||||
Reference in new issue
Block a user