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
15
15
import kotlinx.coroutines.flow.StateFlow
16
16
import kotlinx.coroutines.flow.first
17
17
import kotlinx.coroutines.launch
18
- import kotlinx.coroutines.runBlocking
19
18
import kotlinx.coroutines.time.withTimeout
20
19
import okhttp3.OkHttpClient
21
20
import java.net.HttpURLConnection
@@ -161,9 +160,10 @@ open class CoderProtocolHandler(
161
160
context.cs.launch {
162
161
val ideVersion = " $productCode -$buildNumber "
163
162
context.logger.info(" installing $ideVersion on $environmentId " )
164
- runBlocking {
163
+ val job = context.cs.launch {
165
164
context.ideOrchestrator.prepareClient(environmentId, ideVersion)
166
165
}
166
+ job.join()
167
167
context.logger.info(" launching $ideVersion on $environmentId " )
168
168
context.ideOrchestrator.connectToIde(environmentId, ideVersion, null )
169
169
}
You can’t perform that action at this time.
0 commit comments