summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2015-03-09 12:05:32 +0100
committerParménides GV <parmegv@sdf.org>2015-03-09 12:05:32 +0100
commit767bb8de42b9529b60858fc43e07b1d050ccd785 (patch)
tree6633f1ffc97f4e249defca82222c609277032b6b
parent4028c100a59c45913cb569c4967faaddc090b1f9 (diff)
Eip status disconnects void vpn when disconnecting.
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/eip/EipStatus.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/eip/EipStatus.java b/app/src/main/java/se/leap/bitmaskclient/eip/EipStatus.java
index 4ac3bd6a..f3f6e16f 100644
--- a/app/src/main/java/se/leap/bitmaskclient/eip/EipStatus.java
+++ b/app/src/main/java/se/leap/bitmaskclient/eip/EipStatus.java
@@ -50,9 +50,11 @@ public class EipStatus extends Observable implements VpnStatus.StateListener {
current_status.setLocalizedResId(localizedResId);
current_status.setLevel(level);
current_status.setChanged();
- if(isConnected() || isDisconnected())
+ if(isConnected() || isDisconnected()) {
setConnectedOrDisconnected();
- else if(isConnecting())
+ if(isDisconnected())
+ VoidVpnService.stop();
+ } else if(isConnecting())
setConnecting();
Log.d(TAG, "update state with level " + level);
current_status.notifyObservers();