summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/core
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-09-17 10:59:33 +0200
committerArne Schwabe <arne@rfc2549.org>2013-09-17 10:59:33 +0200
commite86a9a41d289e107bf235baaac766c109f23a5c6 (patch)
tree5f0ada023813fceb18d4d48068954eaac420a0a5 /src/de/blinkt/openvpn/core
parent22b741e9a140eb70ea1772c1b6a43ef2ff3e1512 (diff)
Fix a few market console errors
Diffstat (limited to 'src/de/blinkt/openvpn/core')
-rw-r--r--src/de/blinkt/openvpn/core/OpenVpnManagementThread.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/core/OpenVpnManagementThread.java b/src/de/blinkt/openvpn/core/OpenVpnManagementThread.java
index 9497f18b..4fe54217 100644
--- a/src/de/blinkt/openvpn/core/OpenVpnManagementThread.java
+++ b/src/de/blinkt/openvpn/core/OpenVpnManagementThread.java
@@ -93,7 +93,7 @@ public class OpenVpnManagementThread implements Runnable, OpenVPNManagement {
}
public void managmentCommand(String cmd) {
- if(mSocket!=null) {
+ if(mSocket!=null && mSocket.getOutputStream() !=null) {
try {
mSocket.getOutputStream().write(cmd.getBytes());
mSocket.getOutputStream().flush();