From 730dea377a19a12fe4b26280e6fc86d6b24607eb Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Wed, 25 Nov 2015 16:48:25 +0000
Subject: [PATCH] Streaming: Fix recognition of PoisonPacket in
 ConnectionHandler

---
 .../net/i2p/client/streaming/impl/ConnectionHandler.java  | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/apps/streaming/java/src/net/i2p/client/streaming/impl/ConnectionHandler.java b/apps/streaming/java/src/net/i2p/client/streaming/impl/ConnectionHandler.java
index 3b13ec97fd..753f1bcbe3 100644
--- a/apps/streaming/java/src/net/i2p/client/streaming/impl/ConnectionHandler.java
+++ b/apps/streaming/java/src/net/i2p/client/streaming/impl/ConnectionHandler.java
@@ -291,8 +291,12 @@ class ConnectionHandler {
     private static class PoisonPacket extends Packet {
         public static final int POISON_MAX_DELAY_REQUEST = Packet.MAX_DELAY_REQUEST + 1;
 
-        public PoisonPacket() {
-            setOptionalDelay(POISON_MAX_DELAY_REQUEST);
+        @Override
+        public int getOptionalDelay() { return POISON_MAX_DELAY_REQUEST; }
+
+        @Override
+        public String toString() {
+            return "POISON";
         }
     }
 }
-- 
GitLab