Changeset 77014843


Ignore:
Timestamp:
Jul 16, 2016 4:07:14 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
7f2bd16
Parents:
5f62bf3
Message:

I2CP Client: Break out of wait for LS in connect() if disconnect message received first

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/client/impl/I2PSessionImpl.java

    r5f62bf3 r77014843  
    674674                    _leaseSetWait.wait(1000);
    675675                }
     676                // if we got a disconnect message while waiting
     677                if (isClosed())
     678                    throw new IOException("Disconnected from router while waiting for tunnels");
    676679            }
    677680            if (_log.shouldLog(Log.INFO)) {
     
    12781281        closeSocket();
    12791282        changeState(State.CLOSED);
     1283        // break out of wait for initial LS in connect()
     1284        synchronized (_leaseSetWait) {
     1285            _leaseSetWait.notifyAll();
     1286        }
    12801287    }
    12811288
Note: See TracChangeset for help on using the changeset viewer.