Make sure to stop emulator if component unmounts

This commit is contained in:
momo5502
2025-09-07 09:49:44 +02:00
parent d8b2aa641c
commit f621fef81e

View File

@@ -150,6 +150,10 @@ export class Playground extends React.Component<
}
}
componentWillUnmount(): void {
this.state.emulator?.stop();
}
async resetFilesys() {
if (!this.state.filesystem) {
return;