Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the program being unstoppable when waiting for stdin
If we send a ‘stopPython’ message which the web worker is in the while (true) loop, it won’t handle the message until after the loop exits, so we need to use Pyodide’s interruptBuffer method for checking if we’ve stopped rather than just checking the ‘stopped’ global.
- Loading branch information