mirror of
https://github.com/i2p/i2p.i2p.git
synced 2024-12-06 19:27:00 +01:00
SSU2: Destroy PS2 cipher states when done
This commit is contained in:
@@ -94,11 +94,13 @@ class PeerStateDestroyed implements SSU2Payload.PayloadCallback, SSU2Sender {
|
||||
}
|
||||
|
||||
/**
|
||||
* Call at transport shutdown
|
||||
* Call at transport shutdown or cache eviction
|
||||
*/
|
||||
public void kill() {
|
||||
_ackTimer.cancel();
|
||||
_killTimer.cancel();
|
||||
_sendCha.destroy();
|
||||
_rcvCha.destroy();
|
||||
}
|
||||
|
||||
/// begin SSU2Sender interface ///
|
||||
@@ -358,6 +360,8 @@ class PeerStateDestroyed implements SSU2Payload.PayloadCallback, SSU2Sender {
|
||||
_log.debug("Done listening for " + PeerStateDestroyed.this);
|
||||
_ackTimer.cancel();
|
||||
_transport.removeRecentlyClosed(PeerStateDestroyed.this);
|
||||
_sendCha.destroy();
|
||||
_rcvCha.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user