Also I see another problem with your code

It will wait 189000ms before checking again if KeepPlaying is false, so if you wait 5000ms in another thread it will ofcourse still run that thread because that’s still waiting

1 Like