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

Skip to content
Snippets Groups Projects
Commit 9c0aa0c2 authored by zzz's avatar zzz
Browse files

randomize i2psnark temp dir name

parent b2e908f0
No related branches found
No related tags found
No related merge requests found
......@@ -105,8 +105,8 @@ public class I2PSnarkUtil {
// This is used for both announce replies and .torrent file downloads,
// so it must be available even if not connected to I2CP.
// so much for multiple instances
_tmpDir = new SecureDirectory(ctx.getTempDir(), baseName);
FileUtil.rmdir(_tmpDir, false);
_tmpDir = new SecureDirectory(ctx.getTempDir(), baseName + '-' + ctx.random().nextInt());
//FileUtil.rmdir(_tmpDir, false);
_tmpDir.mkdirs();
}
......
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