Fix memory leak when using ktor-client-java (#4637)
This commit is contained in:
parent
6063a16f54
commit
35a1aa7da2
|
@ -30,7 +30,7 @@ public class BodyHandlerWrapper<T> implements BodyHandler<T> {
|
||||||
if (subscriber instanceof BodySubscriberWrapper) {
|
if (subscriber instanceof BodySubscriberWrapper) {
|
||||||
return subscriber;
|
return subscriber;
|
||||||
}
|
}
|
||||||
return new BodySubscriberWrapper<>(delegate.apply(responseInfo), context);
|
return new BodySubscriberWrapper<>(subscriber, context);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class BodySubscriberWrapper<T> implements BodySubscriber<T> {
|
public static class BodySubscriberWrapper<T> implements BodySubscriber<T> {
|
||||||
|
|
Loading…
Reference in New Issue