From 843f4fa0f7ed8074287c939ee6409752a97d84a7 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 20 Aug 2020 15:28:22 +0200 Subject: [PATCH] fix flood issue when back-filling isn't available --- src/domain/session/room/timeline/tiles/GapTile.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/domain/session/room/timeline/tiles/GapTile.js b/src/domain/session/room/timeline/tiles/GapTile.js index 0cfbb491..98d197b9 100644 --- a/src/domain/session/room/timeline/tiles/GapTile.js +++ b/src/domain/session/room/timeline/tiles/GapTile.js @@ -36,6 +36,9 @@ export class GapTile extends SimpleTile { console.error(`timeline.fillGap(): ${err.message}:\n${err.stack}`); this._error = err; this.emitChange("error"); + // rethrow so caller of this method + // knows not to keep calling this for now + throw err; } finally { this._loading = false; this.emitChange("isLoading");