mirror of
https://github.com/vector-im/element-call.git
synced 2026-02-05 04:15:58 +00:00
* Better logs for connection/component lifecycle * fix: `AudioCaptureOptions` was causing un-necessary effect render AudioCaptureOptions was a different object but with same internal values, use directly deviceId so that Object.is works properly * fix: Livekit openned connection leaks * review: rename to AbortHandles * review: rename variable --------- Co-authored-by: Timo <toger5@hotmail.de>
19 lines
366 B
TypeScript
19 lines
366 B
TypeScript
/*
|
|
Copyright 2025 New Vector Ltd.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE in the repository root for full details.
|
|
*/
|
|
|
|
export class AbortHandle {
|
|
public constructor(private aborted = false) {}
|
|
|
|
public abort(): void {
|
|
this.aborted = true;
|
|
}
|
|
|
|
public isAborted(): boolean {
|
|
return this.aborted;
|
|
}
|
|
}
|