diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-08-13 16:14:49 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-08-13 16:14:49 +0200 |
commit | c6c06255511802ef07e3b88b4089017a4ba1fbdb (patch) | |
tree | 7229987e68d3fe667d548185bb198b4fc9105c6f /src/de/blinkt | |
parent | 00944cd9c35b70fdc774b16ce77122e3bf56cd34 (diff) |
FIX NPE from market console
Diffstat (limited to 'src/de/blinkt')
-rw-r--r-- | src/de/blinkt/openvpn/OpenVpnManagementThread.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/de/blinkt/openvpn/OpenVpnManagementThread.java b/src/de/blinkt/openvpn/OpenVpnManagementThread.java index 4e7729ec..45aaeadf 100644 --- a/src/de/blinkt/openvpn/OpenVpnManagementThread.java +++ b/src/de/blinkt/openvpn/OpenVpnManagementThread.java @@ -431,9 +431,10 @@ public class OpenVpnManagementThread implements Runnable { mt.managmentCommand("signal SIGINT\n");
sendCMD=true;
try {
- mt.mSocket.close();
+ if(mt !=null)
+ mt.mSocket.close();
} catch (IOException e) {
- // Ignore close error on maybe already closed socket
+ // Ignore close error on already closed socket
}
}
return sendCMD;
|