forked from I2P_Developers/i2p.i2p
flag as closed /after/ we send the disconnect message *cough*
This commit is contained in:
@ -447,7 +447,6 @@ abstract class I2PSessionImpl implements I2PSession, I2CPMessageReader.I2CPMessa
|
|||||||
if (_closed) return;
|
if (_closed) return;
|
||||||
|
|
||||||
if (_log.shouldLog(Log.DEBUG)) _log.debug("Destroy the session", new Exception("DestroySession()"));
|
if (_log.shouldLog(Log.DEBUG)) _log.debug("Destroy the session", new Exception("DestroySession()"));
|
||||||
_closed = true;
|
|
||||||
if (sendDisconnect) {
|
if (sendDisconnect) {
|
||||||
try {
|
try {
|
||||||
_producer.disconnect(this);
|
_producer.disconnect(this);
|
||||||
@ -455,6 +454,7 @@ abstract class I2PSessionImpl implements I2PSession, I2CPMessageReader.I2CPMessa
|
|||||||
propogateError("Error destroying the session", ipe);
|
propogateError("Error destroying the session", ipe);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
_closed = true;
|
||||||
closeSocket();
|
closeSocket();
|
||||||
if (_sessionListener != null) _sessionListener.disconnected(this);
|
if (_sessionListener != null) _sessionListener.disconnected(this);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user