You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flip to done before signaling onError/onComplete to prevent infinite
recursion if the subscription is called again synchronously from within
those methods
Copy file name to clipboardExpand all lines: http-clients/netty-nio-client/src/main/java/software/amazon/awssdk/http/nio/netty/internal/ResponseHandler.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -245,14 +245,14 @@ public void subscribe(Subscriber<? super ByteBuffer> subscriber) {
245
245
@Override
246
246
publicvoidrequest(longl) {
247
247
if (l <= 0 && running) {
248
-
subscriber.onError(newIllegalArgumentException("Demand must be positive!"));
249
248
running = false;
249
+
subscriber.onError(newIllegalArgumentException("Demand must be positive!"));
0 commit comments