Remove unnecessary inner class, state checks.

This commit is contained in:
akwizgran
2020-01-16 13:08:16 +00:00
parent 7561c5039e
commit 465ba3d337
2 changed files with 69 additions and 104 deletions

View File

@@ -75,7 +75,6 @@ class AndroidTorPlugin extends TorPlugin {
@Override
protected void enableNetwork(boolean enable) throws IOException {
if (!state.isTorRunning()) return;
if (enable) wakeLock.acquire();
super.enableNetwork(enable);
if (!enable) wakeLock.release();