Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcfb3dd5

Browse files
committed
fixup
1 parentfebf414 commitcfb3dd5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎Coder Desktop/Coder Desktop/Views/VPNMenu.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ struct VPNMenu<VPN: VPNService, S: Session>: View {
1010
// an error is shown: "The VPN session failed because an internal error occurred".
1111
// This forces the user to wait a few seconds before they can toggle the VPN back on.
1212
@StateprivatevarwaitCleanup=false
13-
privatevarwaitCleanupDuration:Duration=.seconds(4)
13+
privatevarwaitCleanupDuration:Duration=.seconds(4)
1414

1515
letinspection=Inspection<Self>()
1616

@@ -94,7 +94,7 @@ struct VPNMenu<VPN: VPNService, S: Session>: View {
9494

9595
privatevarvpnDisabled:Bool{
9696
waitCleanup ||
97-
!session.hasSession ||
97+
!session.hasSession ||
9898
vpn.state==.connecting ||
9999
vpn.state==.disconnecting ||
100100
vpn.state==.failed(.systemExtensionError(.needsUserApproval))
@@ -104,7 +104,7 @@ struct VPNMenu<VPN: VPNService, S: Session>: View {
104104
await vpn.stop()
105105
waitCleanup=true
106106
Task{
107-
tryawaitTask.sleep(for: waitCleanupDuration)
107+
try?awaitTask.sleep(for: waitCleanupDuration)
108108
waitCleanup=false
109109
}
110110
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp