From f78f507745f1a7b7dcf53c793b2d7ecd35bc12f9 Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 22 Jun 2026 10:53:08 +0200 Subject: [PATCH] Address remaining resource leak error --- src/state/CallViewModel/CallNotificationLifecycle.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/state/CallViewModel/CallNotificationLifecycle.ts b/src/state/CallViewModel/CallNotificationLifecycle.ts index 2100bde3e..4d7007b9e 100644 --- a/src/state/CallViewModel/CallNotificationLifecycle.ts +++ b/src/state/CallViewModel/CallNotificationLifecycle.ts @@ -161,6 +161,10 @@ export function createCallNotificationLifecycle$({ recipient, outcome$: race(timeout$, accept$, decline$).pipe( take(1), + // Make this observable 'hot' to avoid running multiple timers. This + // is not actually a resource leak since there will be at most one + // active ring attempt at any given time. + // eslint-disable-next-line element-call/no-observablescope-leak scope.share, ), });