Skip to content

Commit

Permalink
fix: MissingBackpressureException
Browse files Browse the repository at this point in the history
  • Loading branch information
pjpsoares authored and Cierpliwy committed Jan 9, 2020
1 parent a2bd97d commit 22b8277
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
import rx.Observable;
import rx.Observer;
import rx.Subscription;
import rx.schedulers.Schedulers;
import rx.functions.Action0;
import rx.functions.Action1;
import rx.functions.Func0;
Expand Down Expand Up @@ -1332,6 +1333,8 @@ public Observable<byte[]> call(Observable<byte[]> observable) {
return observable;
}
})
.onBackpressureBuffer()
.observeOn(Schedulers.computation())
.doOnUnsubscribe(new Action0() {
@Override
public void call() {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 22b8277

Please sign in to comment.