diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-05-09 02:06:17 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-05-09 02:06:17 +0200 |
commit | b2b46c1867bd7282c91f43e80e0763f86ec791d4 (patch) | |
tree | 8612dfd7101b3fe8b527367090e4818184b6bb2d /src/de/blinkt/openvpn/OpenVpnService.java | |
parent | 271a9073948f1a47786ae40f5af6e58e7992a767 (diff) |
Openvpn as external external program is coming nearer ....
Diffstat (limited to 'src/de/blinkt/openvpn/OpenVpnService.java')
-rw-r--r-- | src/de/blinkt/openvpn/OpenVpnService.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/OpenVpnService.java b/src/de/blinkt/openvpn/OpenVpnService.java index 5c9df8b..a3df9fd 100644 --- a/src/de/blinkt/openvpn/OpenVpnService.java +++ b/src/de/blinkt/openvpn/OpenVpnService.java @@ -151,13 +151,17 @@ public class OpenVpnService extends VpnService implements Handler.Callback { if(OpenVpnManagementThread.stopOpenVPN()){ // an old was asked to exit, wait 2s try { - Thread.sleep(2000); + Thread.sleep(1000); } catch (InterruptedException e) { } } if (mServiceThread!=null) { mServiceThread.interrupt(); + try { + Thread.sleep(1000); + } catch (InterruptedException e) { + } } |