- make sure FakeApplication executor is started in all cases

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10082 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 7ef0e439d4
commit f77b953fff
  1. 6
      sdk/jme3-core/src/com/jme3/gde/core/scene/FakeApplication.java
  2. 1
      sdk/jme3-core/src/com/jme3/gde/core/scene/SceneApplication.java

@ -383,11 +383,7 @@ public class FakeApplication extends SimpleApplication {
/*
* Internal
*/
private ScheduledThreadPoolExecutor fakeAppThread;
public void startFakeApp() {
fakeAppThread = new ScheduledThreadPoolExecutor(1);
}
private ScheduledThreadPoolExecutor fakeAppThread = new ScheduledThreadPoolExecutor(1);
public void stopFakeApp() {
fakeAppThread.shutdown();

@ -376,7 +376,6 @@ public class SceneApplication extends Application implements LookupProvider {
camController.disable();
}
fakeApp = new FakeApplication(rootNode, guiNode, request.getManager(), cam);
fakeApp.startFakeApp();
request.setFakeApp(fakeApp);
enqueue(new Callable() {
public Object call() throws Exception {

Loading…
Cancel
Save