Changeset 76de4fa


Ignore:
Timestamp:
Jul 5, 2013 6:29:00 PM (7 years ago)
Author:
zab2 <zab2@…>
Branches:
master
Children:
7f8efca
Parents:
dfc4948
Message:

better sync

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/streaming/java/src/net/i2p/client/streaming/TCBShare.java

    rdfc4948 r76de4fa  
    8888            _cache.put(dest, e);
    8989        } else {
    90             old = e.getRTT();
    91             oldw = e.getWindowSize();
    92             e.setRTT(opts.getRTT());
    93             e.setWindowSize(opts.getWindowSize());
     90            synchronized(e) {
     91                old = e.getRTT();
     92                oldw = e.getWindowSize();
     93                e.setRTT(opts.getRTT());
     94                e.setWindowSize(opts.getWindowSize());
     95            }
    9496        }
    9597        if (_log.shouldLog(Log.DEBUG))
Note: See TracChangeset for help on using the changeset viewer.