Skip to content
Snippets Groups Projects
Verified Commit 2e002d13 authored by akwizgran's avatar akwizgran
Browse files

Delete old auth cookie before starting Tor.

parent 135372eb
No related branches found
No related tags found
No related merge requests found
......@@ -189,6 +189,8 @@ class TorPlugin implements DuplexPlugin, EventHandler, EventListener {
if (used.getAndSet(true)) throw new IllegalStateException();
// Install or update the assets if necessary
if (!assetsAreUpToDate()) installAssets();
if (cookieFile.exists() && !cookieFile.delete())
LOG.warning("Old auth cookie not deleted");
// Start a new Tor process
LOG.info("Starting Tor");
String torPath = torFile.getAbsolutePath();
......
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