I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit be93db51 authored by jrandom's avatar jrandom Committed by zzz
Browse files

fixed a bug w/ mode=best_effort - we were returning false excessively

parent 8e3e8ada
No related branches found
No related tags found
No related merge requests found
...@@ -242,9 +242,13 @@ class I2PSessionImpl2 extends I2PSessionImpl { ...@@ -242,9 +242,13 @@ class I2PSessionImpl2 extends I2PSessionImpl {
_sendingStates.remove(state); _sendingStates.remove(state);
} }
long afterRemovingSync = _context.clock().now(); long afterRemovingSync = _context.clock().now();
boolean found = state.received(MessageStatusMessage.STATUS_SEND_GUARANTEED_SUCCESS); boolean found = false;
boolean accepted = state.received(MessageStatusMessage.STATUS_SEND_ACCEPTED); boolean accepted = state.received(MessageStatusMessage.STATUS_SEND_ACCEPTED);
if (isGuaranteed())
found = state.received(MessageStatusMessage.STATUS_SEND_GUARANTEED_SUCCESS);
else
found = accepted;
if ((!accepted) || (state.getMessageId() == null)) { if ((!accepted) || (state.getMessageId() == null)) {
if (_log.shouldLog(Log.CRIT)) if (_log.shouldLog(Log.CRIT))
_log.log(Log.CRIT, getPrefix() + "State with nonce " + state.getNonce() _log.log(Log.CRIT, getPrefix() + "State with nonce " + state.getNonce()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment