Skip to content

Commit ffbaa29

Browse files
committed
propagate transport coroutine context
1 parent 14a7e4f commit ffbaa29

File tree

1 file changed

+3
-1
lines changed
  • krpc/krpc-server/src/commonMain/kotlin/kotlinx/rpc/krpc/server

1 file changed

+3
-1
lines changed

krpc/krpc-server/src/commonMain/kotlin/kotlinx/rpc/krpc/server/KrpcServer.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ public abstract class KrpcServer(
6060
*/
6161

6262
@InternalRpcApi
63-
public val internalScope: CoroutineScope = CoroutineScope(SupervisorJob(transport.coroutineContext.job))
63+
public val internalScope: CoroutineScope = CoroutineScope(
64+
transport.coroutineContext + SupervisorJob(transport.coroutineContext.job)
65+
)
6466

6567
private val logger = RpcInternalCommonLogger.logger(rpcInternalObjectId())
6668

0 commit comments

Comments
 (0)