SDK:
- 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:
parent
7ef0e439d4
commit
f77b953fff
@ -383,11 +383,7 @@ public class FakeApplication extends SimpleApplication {
|
|||||||
/*
|
/*
|
||||||
* Internal
|
* Internal
|
||||||
*/
|
*/
|
||||||
private ScheduledThreadPoolExecutor fakeAppThread;
|
private ScheduledThreadPoolExecutor fakeAppThread = new ScheduledThreadPoolExecutor(1);
|
||||||
|
|
||||||
public void startFakeApp() {
|
|
||||||
fakeAppThread = new ScheduledThreadPoolExecutor(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void stopFakeApp() {
|
public void stopFakeApp() {
|
||||||
fakeAppThread.shutdown();
|
fakeAppThread.shutdown();
|
||||||
|
@ -376,7 +376,6 @@ public class SceneApplication extends Application implements LookupProvider {
|
|||||||
camController.disable();
|
camController.disable();
|
||||||
}
|
}
|
||||||
fakeApp = new FakeApplication(rootNode, guiNode, request.getManager(), cam);
|
fakeApp = new FakeApplication(rootNode, guiNode, request.getManager(), cam);
|
||||||
fakeApp.startFakeApp();
|
|
||||||
request.setFakeApp(fakeApp);
|
request.setFakeApp(fakeApp);
|
||||||
enqueue(new Callable() {
|
enqueue(new Callable() {
|
||||||
public Object call() throws Exception {
|
public Object call() throws Exception {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user