File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed
spring-web/src/main/java/org/springframework/http/codec/multipart Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -246,19 +246,9 @@ protected void hookOnNext(DataBuffer buffer) {
246
246
247
247
@ Override
248
248
protected void hookOnError (Throwable ex ) {
249
- try {
250
- if (this .parser != null ) {
251
- this .parser .close ();
252
- }
253
- }
254
- catch (IOException ex2 ) {
255
- // ignore
256
- }
257
- finally {
258
- if (this .listener != null ) {
259
- int index = this .storageFactory .getCurrentPartIndex ();
260
- this .listener .onError ("Failure while parsing part[" + index + "]" , ex );
261
- }
249
+ if (this .listener != null ) {
250
+ int index = this .storageFactory .getCurrentPartIndex ();
251
+ this .listener .onError ("Failure while parsing part[" + index + "]" , ex );
262
252
}
263
253
}
264
254
@@ -277,9 +267,7 @@ protected void hookFinally(SignalType type) {
277
267
}
278
268
}
279
269
catch (IOException ex ) {
280
- if (this .listener != null ) {
281
- this .listener .onError ("Error while closing parser" , ex );
282
- }
270
+ // ignore
283
271
}
284
272
}
285
273
You can’t perform that action at this time.
0 commit comments