summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/OpenVPNThreadv3.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/blinkt/openvpn/OpenVPNThreadv3.java')
-rw-r--r--src/de/blinkt/openvpn/OpenVPNThreadv3.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/de/blinkt/openvpn/OpenVPNThreadv3.java b/src/de/blinkt/openvpn/OpenVPNThreadv3.java
index 5981ffbb..36fcc985 100644
--- a/src/de/blinkt/openvpn/OpenVPNThreadv3.java
+++ b/src/de/blinkt/openvpn/OpenVPNThreadv3.java
@@ -191,11 +191,15 @@ public class OpenVPNThreadv3 extends ClientAPI_OpenVPNClient implements Runnable
}
@Override
- public void event(ClientAPI_Event arg0) {
- if(arg0.getError())
- OpenVPN.logError(String.format("EVENT(Error): %s: %s",arg0.getName(),arg0.getInfo()));
- else
- OpenVPN.logInfo(String.format("EVENT %s: %s",arg0.getName(),arg0.getInfo()));
+ public void event(ClientAPI_Event event) {
+ OpenVPN.updateStateString(event.getName(), event.getInfo());
+ if(event.getError())
+ OpenVPN.logError(String.format("EVENT(Error): %s: %s",event.getName(),event.getInfo()));
+ }
+
+ public void stopVPN() {
+ stop();
+
}
}