Project

General

Profile

« Previous | Next » 

Revision c8d70463

Added by Leszek Koltunski almost 6 years ago

correct oitRenddr again; correct coming to paused state (we could crash)

View differences:

src/main/java/org/distorted/library/main/DistortedObject.java
119 119
    DistortedObject object;
120 120
    int num = mDoneList.size();
121 121

  
122
    for(int i=0; i<num; i++)
122
    try
123
      {
124
      for (int i = 0; i < num; i++)
125
        {
126
        object = mDoneList.removeFirst();
127
        mToDoMap.put(object.mID, object.new Job(object, JOB_CREATE));
128
        object.recreate();
129
        }
130
      }
131
    catch( Exception ex )
123 132
      {
124
      object = mDoneList.removeFirst();
125
      mToDoMap.put(object.mID, object.new Job(object,JOB_CREATE) );
126
      object.recreate();
133
      // something else removed an object in the meantime; ignore
127 134
      }
128 135

  
129 136
    mToDo = true;

Also available in: Unified diff