diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java index 7de0d9652..42c07c361 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java @@ -425,7 +425,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn // Do not set keepalive for internal sockets. boolean keepalive = !(s instanceof InternalSocket); // indent ------------------------------------------------------------- - while (keepalive) { + do { // indent ------------------------------------------------------------- if (requestCount > 0) { if (_log.shouldInfo()) @@ -1485,7 +1485,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn // go around again requestCount++; // indent ------------------------------------------------------------- - } // while (keepalive) + } while (keepalive); // indent ------------------------------------------------------------- } catch(IOException ex) { // This is normal for keepalive when the browser closed the socket,