mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-04-12 19:21:17 +02:00
Move to enabling state earlier in Tor startup.
This commit is contained in:
@@ -75,7 +75,7 @@ class AndroidTorPlugin extends TorPlugin {
|
||||
|
||||
@Override
|
||||
protected void enableNetwork(boolean enable) throws IOException {
|
||||
if (!state.isRunning()) return;
|
||||
if (!state.isTorRunning()) return;
|
||||
if (enable) wakeLock.acquire();
|
||||
super.enableNetwork(enable);
|
||||
if (!enable) wakeLock.release();
|
||||
|
||||
Reference in New Issue
Block a user