From 6684ba1b1deab7692940a23acf86a1bee8cd63a3 Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Tue, 2 Oct 2012 12:35:45 +0000 Subject: [PATCH] * I2CP: Delay after sending disconnect message to help it get through --- .../src/net/i2p/router/client/ClientConnectionRunner.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/router/java/src/net/i2p/router/client/ClientConnectionRunner.java b/router/java/src/net/i2p/router/client/ClientConnectionRunner.java index 15e4dbd71e..fc046f3e6c 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(); } -- GitLab