summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2014-11-26 00:39:37 +0100
committerArne Schwabe <arne@rfc2549.org>2014-11-26 00:39:37 +0100
commit645095d513a1a8e13b5d6552b42bf8703bf2db49 (patch)
tree2f2758d48353ad270400f2c235c4ca041c256da0 /main
parent19e013e6ba85ee25817829bb6556ecd4776c704e (diff)
Always smart on network change.
--HG-- extra : rebase_source : c1a74cf26150f30683124dc7aa912564bb75ad86
Diffstat (limited to 'main')
-rw-r--r--main/src/main/java/de/blinkt/openvpn/core/DeviceStateReceiver.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/core/DeviceStateReceiver.java b/main/src/main/java/de/blinkt/openvpn/core/DeviceStateReceiver.java
index c2341aae..9feedf63 100644
--- a/main/src/main/java/de/blinkt/openvpn/core/DeviceStateReceiver.java
+++ b/main/src/main/java/de/blinkt/openvpn/core/DeviceStateReceiver.java
@@ -182,18 +182,14 @@ public class DeviceStateReceiver extends BroadcastReceiver implements ByteCountL
screen = connectState.DISCONNECTED;
if (shouldBeConnected()) {
- if (sendusr1) {
- if (lastNetwork == -1) {
- mManagement.resume();
- } else {
- mManagement.reconnect();
- }
+ if (lastNetwork == -1) {
+ mManagement.resume();
} else {
mManagement.networkChange();
+
}
}
-
lastNetwork = newnet;
}
} else if (networkInfo == null) {