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

+2-1
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)