Skip to content

Commit 592b991

Browse files
isfaaghythakarnokd
authored andcommitted
Error handle on Completable.fromCallable with RxJavaPlugins (#6165)
1 parent 7d65291 commit 592b991

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/io/reactivex/internal/operators/completable/CompletableFromCallable.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import io.reactivex.*;
1919
import io.reactivex.disposables.*;
2020
import io.reactivex.exceptions.Exceptions;
21+
import io.reactivex.plugins.RxJavaPlugins;
2122

2223
public final class CompletableFromCallable extends Completable {
2324

@@ -37,6 +38,8 @@ protected void subscribeActual(CompletableObserver observer) {
3738
Exceptions.throwIfFatal(e);
3839
if (!d.isDisposed()) {
3940
observer.onError(e);
41+
} else {
42+
RxJavaPlugins.onError(e);
4043
}
4144
return;
4245
}

0 commit comments

Comments
 (0)