* I2CP: Delay after sending disconnect message to

help it get through
This commit is contained in:
zzz
2012-10-02 12:35:45 +00:00
parent 466778875d
commit 6684ba1b1d

View File

@ -308,6 +308,11 @@ class ClientConnectionRunner {
if (_log.shouldLog(Log.WARN))
_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();
}