NTCP: Fix state lock, should not have been static

javadocs
This commit is contained in:
zzz
2018-06-02 17:03:26 +00:00
parent b5117eafc5
commit 02855a0d97
3 changed files with 4 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ import net.i2p.util.SimpleByteCache;
* isCheckInfo()
* NOTE: Check info is unused.
*
* @since 0.9.35 pulled out of EstablishState
*/
abstract class EstablishBase implements EstablishState {
@@ -104,7 +105,7 @@ abstract class EstablishBase implements EstablishState {
protected static final int HXY_SIZE = 32; //Hash.HASH_LENGTH;
protected static final int HXY_TSB_PAD_SIZE = HXY_SIZE + 4 + 12; // 48
protected static final Object _stateLock = new Object();
protected final Object _stateLock = new Object();
protected State _state;
protected enum State {

View File

@@ -23,6 +23,7 @@ import net.i2p.util.SimpleByteCache;
*
* NTCP 1 or 2. We are Bob.
*
* @since 0.9.35 pulled out of EstablishState
*/
class InboundEstablishState extends EstablishBase {

View File

@@ -20,6 +20,7 @@ import net.i2p.util.SimpleByteCache;
*
* NTCP 1 only. We are Alice.
*
* @since 0.9.35 pulled out of EstablishState
*/
class OutboundEstablishState extends EstablishBase {