=doc Invalid FrameParser example fixed #20519
This commit is contained in:
parent
b84c6c5271
commit
2643857e82
2 changed files with 6 additions and 0 deletions
|
|
@ -165,9 +165,12 @@ public class BidiFlowDocTest extends AbstractJavaTest {
|
|||
|
||||
@Override
|
||||
public void onUpstreamFinish() throws Exception {
|
||||
// either we are done
|
||||
if (stash.isEmpty()) completeStage();
|
||||
// or we still have bytes to emit
|
||||
// wait with completion and let run() complete when the
|
||||
// rest of the stash has been sent downstream
|
||||
else if (isAvailable(out)) run();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -93,9 +93,12 @@ object BidiFlowDocSpec {
|
|||
}
|
||||
|
||||
override def onUpstreamFinish(): Unit = {
|
||||
// either we are done
|
||||
if (stash.isEmpty) completeStage()
|
||||
// or we still have bytes to emit
|
||||
// wait with completion and let run() complete when the
|
||||
// rest of the stash has been sent downstream
|
||||
else if (isAvailable(out)) run()
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue