Skip to content
Snippets Groups Projects
Commit c623c3fe authored by cyberta's avatar cyberta
Browse files

improve pairity between registering and unregistering the obfsvpn event logger

parent 2f0c163b
No related branches found
No related tags found
1 merge request!304update obfsvpn
Pipeline #235016 passed
......@@ -40,17 +40,19 @@ public class ObfsvpnClient implements EventLogger {
try {
Log.d(TAG, obfsvpnConfig.toString());
client = Client.newFFIClient(obfsvpnConfig.toString());
client.setEventLogger(this);
} catch (Exception e) {
throw new IllegalStateException(e);
}
}
public int start() {
synchronized (LOCK) {
new Thread(() -> {
try {
if (client.isStarted()) {
return;
}
client.setEventLogger(this);
client.start();
} catch (Exception e) {
e.printStackTrace();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment