summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/de/blinkt/openvpn/OpenVpnManagementThread.java5
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;