Don't crash when the Tor process crashes.

This commit is contained in:
akwizgran
2022-12-07 17:28:33 +00:00
parent 1b087d59d4
commit 852e2c29e3

View File

@@ -811,7 +811,8 @@ abstract class TorPlugin implements DuplexPlugin, EventHandler, EventListener {
@Override
public void controlConnectionClosed() {
if (state.isTorRunning()) {
throw new RuntimeException("Control connection closed");
// TODO: Restart the Tor process
LOG.warning("Control connection closed");
}
}