mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Release cached item in ChannelSendOperator when server error
Related to gh-22720
This commit is contained in:
+6
-1
@@ -394,7 +394,12 @@ public class ChannelSendOperator<T> extends Mono<Void> implements Scannable {
|
||||
|
||||
@Override
|
||||
public void onError(Throwable ex) {
|
||||
this.completionSubscriber.onError(ex);
|
||||
try {
|
||||
this.completionSubscriber.onError(ex);
|
||||
}
|
||||
finally {
|
||||
this.writeBarrier.releaseCachedItem();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user