From 87f99b35ddf7934bbbd1a0ffcc1426d18fb3a25e Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 12 Sep 2025 15:07:35 +0800 Subject: [PATCH] bugfix --- bricks/wterm.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bricks/wterm.js b/bricks/wterm.js index 1e1a269..cea19cc 100644 --- a/bricks/wterm.js +++ b/bricks/wterm.js @@ -28,6 +28,7 @@ bricks.Wterm = class extends bricks.JsWidget { this.socket.onclose = null; this.socket = null; } catch(e) { + this.socket = null; console.log('e=', e); } } @@ -37,6 +38,7 @@ bricks.Wterm = class extends bricks.JsWidget { this.term.dispose(); this.term = null; } catch(e){ + this.term = null; console.log('e=', e); } }