Remove unnecessary inner class, state checks.

This commit is contained in:
akwizgran
2020-01-16 13:08:16 +00:00
parent 0aada89625
commit 0a5f93edf9
2 changed files with 69 additions and 104 deletions

View File

@@ -74,7 +74,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();