summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/pluggableTransports/ObfsVpnClient.java20
1 files changed, 9 insertions, 11 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/pluggableTransports/ObfsVpnClient.java b/app/src/main/java/se/leap/bitmaskclient/pluggableTransports/ObfsVpnClient.java
index c871c708..69210881 100644
--- a/app/src/main/java/se/leap/bitmaskclient/pluggableTransports/ObfsVpnClient.java
+++ b/app/src/main/java/se/leap/bitmaskclient/pluggableTransports/ObfsVpnClient.java
@@ -27,18 +27,16 @@ public class ObfsVpnClient implements Observer {
}
public void start() {
- new Thread(() -> {
- synchronized (LOCK) {
- Log.d(TAG, "aquired LOCK");
- new Thread(obfsVpnClient::start).start();
- try {
- Thread.sleep(500);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- Log.d(TAG, "returning LOCK after 500 ms");
+ synchronized (LOCK) {
+ Log.d(TAG, "aquired LOCK");
+ new Thread(obfsVpnClient::start).start();
+ try {
+ Thread.sleep(500);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
}
- }).start();
+ Log.d(TAG, "returning LOCK after 500 ms");
+ }
}
public void stop() {