File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/kotlin/com/coder/toolbox/util Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import kotlinx.coroutines.delay
1515import kotlinx.coroutines.flow.StateFlow
1616import kotlinx.coroutines.flow.first
1717import kotlinx.coroutines.launch
18- import kotlinx.coroutines.runBlocking
1918import kotlinx.coroutines.time.withTimeout
2019import okhttp3.OkHttpClient
2120import java.net.HttpURLConnection
@@ -161,9 +160,10 @@ open class CoderProtocolHandler(
161160 context.cs.launch {
162161 val ideVersion = " $productCode -$buildNumber "
163162 context.logger.info(" installing $ideVersion on $environmentId " )
164- runBlocking {
163+ val job = context.cs.launch {
165164 context.ideOrchestrator.prepareClient(environmentId, ideVersion)
166165 }
166+ job.join()
167167 context.logger.info(" launching $ideVersion on $environmentId " )
168168 context.ideOrchestrator.connectToIde(environmentId, ideVersion, null )
169169 }
You can’t perform that action at this time.
0 commit comments