mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[rd debugger] Do not compute children when parent scope already cancelled
it caused ClosedSendChannelException in tests GitOrigin-RevId: 89492bc4af7353c676115eee2a7cb2f37afaa127
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bc5a8b1a95
commit
acb879ca86
+3
-7
@@ -184,7 +184,7 @@ internal fun computeContainerChildren(
|
||||
|
||||
return channelFlow {
|
||||
parentCs.awaitCancellationAndInvoke {
|
||||
close()
|
||||
rawEvents.close()
|
||||
}
|
||||
val addNextChildrenCallbackHandler = AddNextChildrenCallbackHandler(this@channelFlow)
|
||||
|
||||
@@ -224,16 +224,12 @@ internal fun computeContainerChildren(
|
||||
}
|
||||
}
|
||||
|
||||
launch {
|
||||
try {
|
||||
xValueContainer.computeChildren(xCompositeBridgeNode)
|
||||
for (event in rawEvents) {
|
||||
send(event.convertToRpcEvent(parentCs, session))
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
xValueContainer.computeChildren(xCompositeBridgeNode)
|
||||
awaitClose()
|
||||
}
|
||||
finally {
|
||||
xCompositeBridgeNode.obsolete = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user