forked from I2P_Developers/i2p.i2p
Merge branch 'ssu-sync-fix' into 'master'
lock locked_shouldSend on this See merge request i2p-hackers/i2p.i2p!3
This commit is contained in:
@@ -1662,9 +1662,10 @@ public class PeerState {
|
||||
}
|
||||
|
||||
/**
|
||||
* Caller should synch
|
||||
* Locks this.
|
||||
*/
|
||||
private boolean locked_shouldSend(OutboundMessageState state, long now, boolean resetWindow) {
|
||||
synchronized(this) {
|
||||
if (allocateSendingBytes(state, now, resetWindow)) {
|
||||
if (_log.shouldLog(Log.DEBUG))
|
||||
_log.debug(_remotePeer + " Allocation allowed with "
|
||||
@@ -1684,6 +1685,7 @@ public class PeerState {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A full ACK was received.
|
||||
|
Reference in New Issue
Block a user