Changeset f5614c8


Ignore:
Timestamp:
Apr 6, 2009 7:44:47 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
0cfbe9c, 8c8a2de
Parents:
9e7dd23
Message:

synchronize datagram maker in I2PSinks

Location:
apps/i2ptunnel/java/src/net/i2p/i2ptunnel/udp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/udp/I2PSink.java

    r9e7dd23 rf5614c8  
    3838        // create payload
    3939        byte[] payload;
    40         if(!this.raw)
    41             payload = this.maker.makeI2PDatagram(data);
    42         else
     40        if(!this.raw) {
     41            synchronized(this.maker) {
     42                payload = this.maker.makeI2PDatagram(data);
     43            }
     44        } else
    4345            payload = data;
    4446       
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/udp/I2PSinkAnywhere.java

    r9e7dd23 rf5614c8  
    3636        // create payload
    3737        byte[] payload;
    38         if(!this.raw)
    39             payload = this.maker.makeI2PDatagram(data);
    40         else
     38        if(!this.raw) {
     39            synchronized(this.maker) {
     40                payload = this.maker.makeI2PDatagram(data);
     41            }
     42        } else
    4143            payload = data;
    4244       
Note: See TracChangeset for help on using the changeset viewer.