Skip to content

Commit 1496bec

Browse files
Update App/Services/RpcController.cs
Co-authored-by: Dean Sheather <[email protected]>
1 parent 18d785f commit 1496bec

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

App/Services/RpcController.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,7 @@ public async Task StopVpn(CancellationToken ct = default)
235235
throw new VpnLifecycleException($"Failed to stop VPN. Service reported failure: {reply.Stop.ErrorMessage}");
236236
}
237237

238-
if (reply.Stop.Success)
239-
{
240-
MutateState(state => { state.VpnLifecycle = VpnLifecycle.Stopped; });
241-
}
238+
MutateState(state => { state.VpnLifecycle = VpnLifecycle.Stopped; });
242239
}
243240

244241
public async ValueTask DisposeAsync()

0 commit comments

Comments
 (0)