Project

General

Profile

« Previous | Next » 

Revision d2039fdd

Added by Leszek Koltunski about 5 years ago

Improve locking in DistortedObject.
DistortedMaster: slaves can be NULL !

View differences:

src/main/java/org/distorted/library/main/DistortedMaster.java
58 58
      for(int i=0; i<num; i++)
59 59
        {
60 60
        slave = mSlaves.remove(0);
61
        slave.doWork();
61

  
62
        if( slave!=null ) slave.doWork();
62 63
        }
63 64
      }
64 65
    catch(IndexOutOfBoundsException ie)

Also available in: Unified diff