@ -267,6 +267,10 @@ public abstract class LwjglAbstractDisplay extends LwjglContext implements Runna
}
public void destroy(boolean waitFor) {
if (needClose.get()) {
return; // Already destroyed
needClose.set(true);
if (waitFor)
waitFor(false);