Skip to content

Commit 3bef4a2

Browse files
committed
Fixup
1 parent 56275d3 commit 3bef4a2

File tree

1 file changed

+8
-3
lines changed
  • components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote

1 file changed

+8
-3
lines changed

components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/GitpodCLIService.kt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
1+
// Copyright (c) 2024 Gitpod GmbH. All rights reserved.
22
// Licensed under the GNU Affero General Public License (AGPL).
33
// See License.AGPL.txt in the project root for license information.
44

@@ -27,7 +27,10 @@ import io.netty.channel.ChannelHandlerContext
2727
import io.netty.handler.codec.http.FullHttpRequest
2828
import io.netty.handler.codec.http.QueryStringDecoder
2929
import io.prometheus.client.exporter.common.TextFormat
30-
import kotlinx.coroutines.*
30+
import kotlinx.coroutines.GlobalScope
31+
import kotlinx.coroutines.delay
32+
import kotlinx.coroutines.launch
33+
import kotlinx.coroutines.runBlocking
3134
import org.jetbrains.ide.RestService
3235
import org.jetbrains.io.response
3336
import java.io.OutputStreamWriter
@@ -113,7 +116,9 @@ class GitpodCLIService : RestService() {
113116
GlobalScope.launch {
114117
getClientSessionAndProjectAsync().let { (session, project) ->
115118
ClientId.withClientId(session.clientId) {
116-
action(project)
119+
runBlocking {
120+
action(project)
121+
}
117122
sendOk(request, context)
118123
}
119124
}

0 commit comments

Comments
 (0)