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

Commit5710fdd

Browse files
committed
chore: handle waking from device sleep
1 parentd2ed4a9 commit5710fdd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎Coder Desktop/Coder Desktop/State.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ class SecureSession: ObservableObject, Session {
4545
// isn't accessible, so we'll use providerConfiguration, which is over XPC.
4646
proto.providerConfiguration=["token": sessionToken!]
4747
proto.serverAddress= baseAccessURL!.absoluteString
48+
// We don't currently have a way to refresh the peer state from the server,
49+
// and we might have missed updates while we slept,.
50+
// To avoid showing some weird state on wake, we'll just disconnect on sleep.
51+
proto.disconnectOnSleep=true
4852
return proto
4953
}
5054

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp