diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-02-07 23:59:39 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-02-07 23:59:39 +0100 |
commit | fa9f76f27cf1a50122227e8ff9e98adb8eeb44f0 (patch) | |
tree | fd3d75982335fdef8ce507a20fcd825ca8196908 /src/de/blinkt/openvpn/OpenVPNThreadv3.java | |
parent | 811436bea4925a657ce8a986c64513f76a5f2aa5 (diff) |
More fixes for OpenVPN v3 Core
--HG--
branch : ovpn3
Diffstat (limited to 'src/de/blinkt/openvpn/OpenVPNThreadv3.java')
-rw-r--r-- | src/de/blinkt/openvpn/OpenVPNThreadv3.java | 14 |
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(); + } } |