mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-22 21:53:14 +00:00
Address remaining resource leak error
This commit is contained in:
1 parent
f72a593eb4
commit
f78f507745
1 file changed
+4
@@ -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,
|
||||
),
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user