diff --git a/router/java/src/net/i2p/router/client/ClientConnectionRunner.java b/router/java/src/net/i2p/router/client/ClientConnectionRunner.java index 15e4dbd71ee67a04eebe83e40c8c62afdb78a0ff..fc046f3e6cce033b44c07b7b92ed20d87fc4998d 100644 --- a/router/java/src/net/i2p/router/client/ClientConnectionRunner.java +++ b/router/java/src/net/i2p/router/client/ClientConnectionRunner.java @@ -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(); }