summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/de/blinkt/openvpn/OpenVpnManagementThread.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/OpenVpnManagementThread.java b/src/de/blinkt/openvpn/OpenVpnManagementThread.java
index dcadfdbd..d593832a 100644
--- a/src/de/blinkt/openvpn/OpenVpnManagementThread.java
+++ b/src/de/blinkt/openvpn/OpenVpnManagementThread.java
@@ -439,7 +439,7 @@ public class OpenVpnManagementThread implements Runnable {
mt.managmentCommand("signal SIGINT\n");
sendCMD=true;
try {
- if(mt !=null)
+ if(mt.mSocket !=null)
mt.mSocket.close();
} catch (IOException e) {
// Ignore close error on already closed socket