From c6c96a611a4a224494945fc132940826c1f57a7b Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 23 Feb 2021 19:04:25 +0100 Subject: [PATCH] fix iteration bug when disposing pending events at shutdown discovered by logging --- src/matrix/room/sending/SendQueue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/sending/SendQueue.js b/src/matrix/room/sending/SendQueue.js index 4a678cfe..ce26d849 100644 --- a/src/matrix/room/sending/SendQueue.js +++ b/src/matrix/room/sending/SendQueue.js @@ -205,7 +205,7 @@ export class SendQueue { } dispose() { - for (const pe in this._pendingEvents.array) { + for (const pe of this._pendingEvents) { pe.dispose(); } }