mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-21 12:43:57 +00:00
Make sure to stop emulator if component unmounts
This commit is contained in:
@@ -150,6 +150,10 @@ export class Playground extends React.Component<
|
||||
}
|
||||
}
|
||||
|
||||
componentWillUnmount(): void {
|
||||
this.state.emulator?.stop();
|
||||
}
|
||||
|
||||
async resetFilesys() {
|
||||
if (!this.state.filesystem) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user