SSU: Don't call PS.expireInboundMessages() from messageReceived()

it's already called from IMF
This commit is contained in:
zzz
2021-04-04 13:25:57 -04:00
parent de108dbc5e
commit a2dde559f1

View File

@@ -1671,13 +1671,14 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
}
}
} else {
if (_log.shouldLog(Log.DEBUG))
_log.debug("Received another message: " + inMsg.getClass().getName());
//if (_log.shouldLog(Log.DEBUG))
// _log.debug("Received another message: " + inMsg.getClass().getName());
}
PeerState peer = getPeerState(remoteIdentHash);
//PeerState peer = getPeerState(remoteIdentHash);
super.messageReceived(inMsg, remoteIdent, remoteIdentHash, msToReceive, bytesReceived);
if (peer != null)
peer.expireInboundMessages();
// Called in IMF, not needed here too
//if (peer != null)
// peer.expireInboundMessages();
}
private class RemoveDropList implements SimpleTimer.TimedEvent {