From 4021deec7f0a03882421310842f2cc4f6d41ff30 Mon Sep 17 00:00:00 2001
From: mihi <mihi>
Date: Fri, 7 May 2004 03:10:57 +0000
Subject: [PATCH] poke jrandom's eyes into the semantic of an "else" clause

(you may remove both comments when you understood it)

[mihi]
---
 .../java/src/net/i2p/client/streaming/I2PSocketImpl.java       | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/apps/ministreaming/java/src/net/i2p/client/streaming/I2PSocketImpl.java b/apps/ministreaming/java/src/net/i2p/client/streaming/I2PSocketImpl.java
index 69631073ab..122d2a3e2e 100644
--- a/apps/ministreaming/java/src/net/i2p/client/streaming/I2PSocketImpl.java
+++ b/apps/ministreaming/java/src/net/i2p/client/streaming/I2PSocketImpl.java
@@ -378,6 +378,9 @@ class I2PSocketImpl implements I2PSocket {
                 // but perhaps there's something funky in the stream's operation,
                 // or some other dependency within the rest of the ministreaming
                 // lib, so for the moment, return false.  --jr
+                // --
+                // hehe, look at the else. This case is only used iff len == -1
+                // and bcsize == 0 (i.e. there is an EOF)  --mihi
                 return false;
             }
             if ((bcsize < MAX_PACKET_SIZE) && (in.available() == 0)) {
-- 
GitLab