summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/wireguard/android/model/TunnelManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/com/wireguard/android/model/TunnelManager.java b/app/src/main/java/com/wireguard/android/model/TunnelManager.java
index 9e03cc39..381e7f77 100644
--- a/app/src/main/java/com/wireguard/android/model/TunnelManager.java
+++ b/app/src/main/java/com/wireguard/android/model/TunnelManager.java
@@ -90,7 +90,7 @@ public final class TunnelManager extends BaseObservable {
configStore.delete(tunnel.getName());
} catch (final Exception e) {
if (originalState == State.UP)
- backend.setState(tunnel, originalState);
+ backend.setState(tunnel, State.UP);
// Re-throw the exception to fail the completion.
throw e;
}
@@ -199,7 +199,7 @@ public final class TunnelManager extends BaseObservable {
configStore.rename(tunnel.getName(), name);
final String newName = tunnel.onNameChanged(name);
if (originalState == State.UP)
- backend.setState(tunnel, originalState);
+ backend.setState(tunnel, State.UP);
return newName;
}).whenComplete((newName, e) -> {
// On failure, we don't know what state the tunnel might be in. Fix that.