Skip to content

Commit 3c91f54

Browse files
committed
fix
1 parent 3e219a0 commit 3c91f54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rsocket-core/src/commonMain/kotlin/io/rsocket/kotlin/connection/ConnectionEstablishmentHandler.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ internal abstract class ConnectionEstablishmentHandler(
101101
}
102102
}
103103

104-
override suspend fun RSocketConnection.initialize() {
105-
handleConnection(wrapConnection(this, coroutineContext.supervisorContext()))
104+
override suspend fun RSocketConnection.initialize() = coroutineScope {
105+
handleConnection(wrapConnection(this@initialize, coroutineContext.supervisorContext()))
106106
}
107107
}

0 commit comments

Comments
 (0)