I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit 2bec84dd authored by zzz's avatar zzz
Browse files

Streaming: Soft restart fixes part 4

Do not clear the DisconnectListeners after notification
parent cf7efcad
No related branches found
No related tags found
No related merge requests found
...@@ -103,6 +103,9 @@ class MessageHandler implements I2PSessionMuxedListener { ...@@ -103,6 +103,9 @@ class MessageHandler implements I2PSessionMuxedListener {
/** /**
* Notify the client that the session has been terminated * Notify the client that the session has been terminated
* *
* As of 0.9.54, this does not clear the listeners, so
* they will be notified again after a subsequent connection and disconnection.
*
* @param session that has been terminated * @param session that has been terminated
*/ */
public void disconnected(I2PSession session) { public void disconnected(I2PSession session) {
...@@ -119,7 +122,6 @@ class MessageHandler implements I2PSessionMuxedListener { ...@@ -119,7 +122,6 @@ class MessageHandler implements I2PSessionMuxedListener {
for (I2PSocketManager.DisconnectListener lsnr : _listeners) { for (I2PSocketManager.DisconnectListener lsnr : _listeners) {
lsnr.sessionDisconnected(); lsnr.sessionDisconnected();
} }
_listeners.clear();
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment