Skip to content

Commit fe5513d

Browse files
authored
Fix scope initialization on the kRPC Client (#505)
1 parent ff67927 commit fe5513d

File tree

1 file changed

+2
-0
lines changed
  • krpc/krpc-client/src/commonMain/kotlin/kotlinx/rpc/krpc/client

1 file changed

+2
-0
lines changed

krpc/krpc-client/src/commonMain/kotlin/kotlinx/rpc/krpc/client/KrpcClient.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ public abstract class KrpcClient : RpcClient, KrpcEndpoint {
217217
transport = initializeTransport()
218218
isTransportReady = true
219219

220+
internalScope // access scope to initialize it
221+
220222
connector.subscribeToGenericMessages(::handleGenericMessage)
221223
connector.subscribeToProtocolMessages(::handleProtocolMessage)
222224

0 commit comments

Comments
 (0)