v0.8.1a: added a safety check to gamescene's destroy function
This commit is contained in:
parent
23b9991ec7
commit
626e8e34f0
|
@ -502,7 +502,7 @@ public class GameScene extends PixelScene {
|
|||
public void destroy() {
|
||||
|
||||
//tell the actor thread to finish, then wait for it to complete any actions it may be doing.
|
||||
if (actorThread.isAlive()){
|
||||
if (actorThread != null && actorThread.isAlive()){
|
||||
synchronized (GameScene.class){
|
||||
synchronized (actorThread) {
|
||||
actorThread.interrupt();
|
||||
|
|
Loading…
Reference in New Issue
Block a user