- make sure FakeApplication executor is started in all cases

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10082 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2013-01-16 20:59:51 +00:00
parent 7ef0e439d4
commit f77b953fff
2 changed files with 1 additions and 6 deletions

View File

@ -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();

View File

@ -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 {