From c4add5bcd53a105dc03505fb980de9867f10e305 Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Wed, 11 Dec 2024 17:30:46 +0000 Subject: [PATCH] Leave retry at current level --- src/matrixrtc/MatrixRTCSession.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/matrixrtc/MatrixRTCSession.ts b/src/matrixrtc/MatrixRTCSession.ts index 93fbcd0dce..855596b797 100644 --- a/src/matrixrtc/MatrixRTCSession.ts +++ b/src/matrixrtc/MatrixRTCSession.ts @@ -1182,13 +1182,11 @@ export class MatrixRTCSession extends TypedEventEmitter - this.client._unstable_updateDelayedEvent( - knownDisconnectDelayId, - UpdateDelayedEventAction.Restart, - ), - 10, + await resendIfRateLimited(() => + this.client._unstable_updateDelayedEvent( + knownDisconnectDelayId, + UpdateDelayedEventAction.Restart, + ), ); } catch (e) { if (e instanceof MatrixError && e.errcode === "M_NOT_FOUND") {