Skip to content

Commit a30bf4f

Browse files
committed
Use global scope to launch
I guess `launch` alone is no longer allowed.
1 parent 2b27d3a commit a30bf4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/kotlin/com/coder/gateway/CoderRemoteConnectionHandle.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import com.jetbrains.gateway.ssh.SshDeployFlowUtil
3131
import com.jetbrains.gateway.ssh.SshMultistagePanelContext
3232
import com.jetbrains.gateway.ssh.deploy.DeployException
3333
import com.jetbrains.rd.util.lifetime.LifetimeDefinition
34+
import kotlinx.coroutines.GlobalScope
3435
import kotlinx.coroutines.launch
3536
import net.schmizz.sshj.common.SSHException
3637
import net.schmizz.sshj.connection.ConnectionException
@@ -78,7 +79,7 @@ class CoderRemoteConnectionHandle {
7879
indicator.text = CoderGatewayBundle.message("gateway.connector.coder.connecting.failed.retry", humanizeDuration(remainingMs))
7980
},
8081
)
81-
launch {
82+
GlobalScope.launch {
8283
logger.info("Deploying and starting IDE with $context")
8384
// At this point JetBrains takes over with their own UI.
8485
@Suppress("UnstableApiUsage") SshDeployFlowUtil.fullDeployCycle(

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