Don't remove from the relay map after a file is requested, as it may be needed by other peers.

It will be cleaned up automatically after 60 seconds, so it is best to keep the data intact until then.
This commit is contained in:
CalDescent 2022-02-06 16:04:54 +00:00
parent 9ec4e24ef6
commit cd5ce6dd5e

View File

@ -432,9 +432,6 @@ public class ArbitraryDataFileManager extends Thread {
// Forward the message to this peer
LOGGER.debug("Asking peer {} for hash {}", peerToAsk, hash58);
this.fetchArbitraryDataFile(peerToAsk, peer, signature, hash, message);
// Remove from the map regardless of outcome, as the relay attempt is now considered complete
arbitraryRelayMap.remove(hash58);
}
else {
LOGGER.debug("Peer {} not found in relay info", peer);