From ef2dee4adc8efd9e707891bcc5e36175adfb0849 Mon Sep 17 00:00:00 2001 From: J3vb Date: Sun, 5 Apr 2026 19:46:41 +0200 Subject: [PATCH] fix: resolve floating promise ESLint errors in livekitSession.ts - void localRoom.disconnect() in error handler - void this.rotateKeyPeriodically() in setTimeout callback --- Client/tauri-client/src/lib/livekitSession.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/tauri-client/src/lib/livekitSession.ts b/Client/tauri-client/src/lib/livekitSession.ts index 04f77c74..17a2783a 100644 --- a/Client/tauri-client/src/lib/livekitSession.ts +++ b/Client/tauri-client/src/lib/livekitSession.ts @@ -1061,7 +1061,7 @@ export class LiveKitSession { log.error("Failed to connect to LiveKit", { url: resolvedUrl, error: err }); if (localRoom !== null) { try { - localRoom.disconnect(); + void localRoom.disconnect(); } catch { /* ignore */ } @@ -1363,7 +1363,7 @@ export class LiveKitSession { if (!this._isKeyHolder) return; this._keyRotationTimer = setTimeout(() => { this._keyRotationTimer = null; - this.rotateKeyPeriodically(); + void this.rotateKeyPeriodically(); }, LiveKitSession.KEY_ROTATION_INTERVAL_MS); log.debug("E2EE: key rotation timer started", { intervalMs: LiveKitSession.KEY_ROTATION_INTERVAL_MS,