From 884f45fc81df066112d99d6bd7cf22c1c27caae5 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 28 Jan 2026 13:31:14 +0800 Subject: [PATCH] bugfix --- bricks/popup.js | 2 +- bricks/rtc.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bricks/popup.js b/bricks/popup.js index 6fe85d4..c6814f3 100644 --- a/bricks/popup.js +++ b/bricks/popup.js @@ -383,7 +383,7 @@ bricks.Popup = class extends bricks.VBox { } this.opened = false; if (this.auto_task){ - this.auto_task.cancel(); + setTimeout(this.auto_task); this.auto_task = null; } this.set_style('display','none'); diff --git a/bricks/rtc.js b/bricks/rtc.js index 5d0a135..1ff25e6 100644 --- a/bricks/rtc.js +++ b/bricks/rtc.js @@ -55,7 +55,7 @@ bricks.Signaling = class { reconnect(){ console.log('eror happened'); if (this.hb_task){ - this.hb_task.cancel(); + clearInterval(this.hb_task); this.hb_task = null; } if (this.onclose){