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

Skip to content
Snippets Groups Projects
Commit 6684ba1b authored by zzz's avatar zzz
Browse files

* I2CP: Delay after sending disconnect message to

         help it get through
parent 46677887
No related branches found
No related tags found
No related merge requests found
...@@ -308,6 +308,11 @@ class ClientConnectionRunner { ...@@ -308,6 +308,11 @@ class ClientConnectionRunner {
if (_log.shouldLog(Log.WARN)) if (_log.shouldLog(Log.WARN))
_log.warn("Error writing out the disconnect message: " + ime); _log.warn("Error writing out the disconnect message: " + ime);
} }
// give it a little time to get sent out...
// even better would be to have stopRunning() flush it?
try {
Thread.sleep(50);
} catch (InterruptedException ie) {}
stopRunning(); stopRunning();
} }
......
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