From a460a0dc44f35587315b0825fb90e092f8ece026 Mon Sep 17 00:00:00 2001 From: jrandom <jrandom> Date: Fri, 30 Apr 2004 07:00:13 +0000 Subject: [PATCH] logging, and be more forgiving if the guaranteed/failed comes back before the ack does --- core/java/src/net/i2p/client/I2PSessionImpl2.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/core/java/src/net/i2p/client/I2PSessionImpl2.java b/core/java/src/net/i2p/client/I2PSessionImpl2.java index 03a19c9271..e59ba1f2ff 100644 --- a/core/java/src/net/i2p/client/I2PSessionImpl2.java +++ b/core/java/src/net/i2p/client/I2PSessionImpl2.java @@ -223,12 +223,14 @@ class I2PSessionImpl2 extends I2PSessionImpl { if ((!accepted) || (state.getMessageId() == null)) { if (_log.shouldLog(Log.ERROR)) _log.error("State with nonce " + state.getNonce() - + " was not accepted? (no messageId!!)"); + + " was not accepted? (no messageId!! found=" + found + + " msgId=" + state.getMessageId() + ")", + new Exception("Race on accept/success status messages?")); nackTags(state); - if (_log.shouldLog(Log.CRIT)) - _log.log(Log.CRIT, "Disconnecting/reconnecting because we never were accepted!"); - disconnect(); - return false; + //if (_log.shouldLog(Log.CRIT)) + // _log.log(Log.CRIT, "Disconnecting/reconnecting because we never were accepted!"); + //disconnect(); + //return false; } if (_log.shouldLog(Log.DEBUG)) -- GitLab