From f621fef81e8e6f111943edf6383dfa9e6afa96d2 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sun, 7 Sep 2025 09:49:44 +0200 Subject: [PATCH] Make sure to stop emulator if component unmounts --- page/src/playground.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/page/src/playground.tsx b/page/src/playground.tsx index 9a103a1a..d607f071 100644 --- a/page/src/playground.tsx +++ b/page/src/playground.tsx @@ -150,6 +150,10 @@ export class Playground extends React.Component< } } + componentWillUnmount(): void { + this.state.emulator?.stop(); + } + async resetFilesys() { if (!this.state.filesystem) { return;