From 2f149ec2a523be184e0863e03a94f104ad0524d6 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Mon, 11 Jun 2012 01:49:08 +0000 Subject: [PATCH] SDK: - avoid duplicate fail entries in AssetDataObject git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9475 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/com/jme3/gde/core/assets/AssetDataObject.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/assets/AssetDataObject.java b/sdk/jme3-core/src/com/jme3/gde/core/assets/AssetDataObject.java index d8eb9048e..5a557e29a 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/assets/AssetDataObject.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/assets/AssetDataObject.java @@ -77,11 +77,9 @@ public class AssetDataObject extends MultiDataObject { protected final Lookup lookup; protected final InstanceContent lookupContents = new InstanceContent(); protected SaveCookie saveCookie = new SaveCookie() { - public void save() throws IOException { //TODO: On OpenGL thread? -- safest way.. with get()? SceneApplication.getApplication().enqueue(new Callable() { - public Object call() throws Exception { saveAsset(); return null; @@ -305,7 +303,9 @@ public class AssetDataObject extends MultiDataObject { assetList.remove(obj); assetKeyList.remove(ak1); } - failedList.add(ak1); + if (!failedList.contains(ak1)) { + failedList.add(ak1); + } } public void start() {