mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
up
This commit is contained in:
parent
9c5284a381
commit
1044475f70
@ -5026,13 +5026,11 @@ public:
|
||||
void terminate(){
|
||||
if(_state == THREAD_RUNNING || _state == THREAD_SUSPENDED){
|
||||
keyboardInterrupt();
|
||||
while(_state != THREAD_FINISHED) {
|
||||
#ifdef __EMSCRIPTEN__
|
||||
emscripten_sleep(20);
|
||||
// no way to terminate safely
|
||||
#else
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(20));
|
||||
while(_state != THREAD_FINISHED);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 3b6f3c85037a67fe1f8817ffa40532b3c1ecc728
|
||||
Subproject commit d3c5ec6fdf62217fb18c08c0e19ccea21d41ab18
|
Loading…
x
Reference in New Issue
Block a user