From 25314fd91a4083a5107f5aca7798263f8edc173d Mon Sep 17 00:00:00 2001 From: jrandom Date: Thu, 6 May 2004 04:18:28 +0000 Subject: [PATCH] make sure we mark the send as *failed* if we need to reconnect --- core/java/src/net/i2p/client/I2PSessionImpl2.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/java/src/net/i2p/client/I2PSessionImpl2.java b/core/java/src/net/i2p/client/I2PSessionImpl2.java index e59ba1f2f..d5d0297d1 100644 --- a/core/java/src/net/i2p/client/I2PSessionImpl2.java +++ b/core/java/src/net/i2p/client/I2PSessionImpl2.java @@ -65,6 +65,7 @@ class I2PSessionImpl2 extends I2PSessionImpl { } public boolean sendMessage(Destination dest, byte[] payload) throws I2PSessionException { + return sendMessage(dest, payload, new SessionKey(), new HashSet(64)); } @@ -225,12 +226,12 @@ class I2PSessionImpl2 extends I2PSessionImpl { _log.error("State with nonce " + state.getNonce() + " was not accepted? (no messageId!! found=" + found + " msgId=" + state.getMessageId() + ")", - new Exception("Race on accept/success status messages?")); + new Exception("Race on accept/success status messages, or reconnected?")); nackTags(state); //if (_log.shouldLog(Log.CRIT)) // _log.log(Log.CRIT, "Disconnecting/reconnecting because we never were accepted!"); //disconnect(); - //return false; + return false; } if (_log.shouldLog(Log.DEBUG))