Skip to content

Commit ca53d20

Browse files
committed
chore: handle waking from device sleep
1 parent d2ed4a9 commit ca53d20

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy