@ -688,6 +688,16 @@ final class PartGenerator extends BaseSubscriber<MultipartParser.Token> {
@@ -688,6 +688,16 @@ final class PartGenerator extends BaseSubscriber<MultipartParser.Token> {
@Override
publicvoidonComplete(){
this.completed=true;
publicvoidpartComplete(booleanfinalPart){
Statestate=PartGenerator.this.state.get();
// writeComplete might have changed our state to IdleFileState
if(state!=this){
state.partComplete(finalPart);
}
else{
this.completed=true;
this.finalPart=finalPart;
}
}
publicvoidwriteBuffer(DataBufferdataBuffer){
@ -711,14 +721,16 @@ final class PartGenerator extends BaseSubscriber<MultipartParser.Token> {
@@ -711,14 +721,16 @@ final class PartGenerator extends BaseSubscriber<MultipartParser.Token> {