2021-11-08 18:25:28 +00:00
|
|
|
package j0.l.a;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
2022-01-27 00:50:41 +00:00
|
|
|
import b.i.a.f.e.o.f;
|
2021-11-08 18:25:28 +00:00
|
|
|
import j0.o.l;
|
2021-06-27 20:44:35 +00:00
|
|
|
import rx.Observable;
|
|
|
|
import rx.Producer;
|
|
|
|
import rx.Subscriber;
|
|
|
|
import rx.subscriptions.SerialSubscription;
|
|
|
|
/* compiled from: OperatorOnErrorResumeNextViaFunction */
|
|
|
|
public class e1 extends Subscriber<T> {
|
2021-12-17 22:03:14 +00:00
|
|
|
public boolean j;
|
|
|
|
public long k;
|
|
|
|
public final /* synthetic */ Subscriber l;
|
|
|
|
public final /* synthetic */ j0.l.b.a m;
|
|
|
|
public final /* synthetic */ SerialSubscription n;
|
|
|
|
public final /* synthetic */ f1 o;
|
2021-06-27 20:44:35 +00:00
|
|
|
|
|
|
|
/* compiled from: OperatorOnErrorResumeNextViaFunction */
|
|
|
|
public class a extends Subscriber<T> {
|
|
|
|
public a() {
|
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
@Override // j0.g
|
2021-06-27 20:44:35 +00:00
|
|
|
public void onCompleted() {
|
2021-12-17 22:03:14 +00:00
|
|
|
e1.this.l.onCompleted();
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
@Override // j0.g
|
2021-06-27 20:44:35 +00:00
|
|
|
public void onError(Throwable th) {
|
2021-12-17 22:03:14 +00:00
|
|
|
e1.this.l.onError(th);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
@Override // j0.g
|
2021-06-27 20:44:35 +00:00
|
|
|
public void onNext(T t) {
|
2021-12-17 22:03:14 +00:00
|
|
|
e1.this.l.onNext(t);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // rx.Subscriber
|
|
|
|
public void setProducer(Producer producer) {
|
2021-12-17 22:03:14 +00:00
|
|
|
e1.this.m.c(producer);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
public e1(f1 f1Var, Subscriber subscriber, j0.l.b.a aVar, SerialSubscription serialSubscription) {
|
2021-12-17 22:03:14 +00:00
|
|
|
this.o = f1Var;
|
|
|
|
this.l = subscriber;
|
|
|
|
this.m = aVar;
|
|
|
|
this.n = serialSubscription;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
@Override // j0.g
|
2021-06-27 20:44:35 +00:00
|
|
|
public void onCompleted() {
|
2021-12-17 22:03:14 +00:00
|
|
|
if (!this.j) {
|
|
|
|
this.j = true;
|
|
|
|
this.l.onCompleted();
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
@Override // j0.g
|
2021-06-27 20:44:35 +00:00
|
|
|
public void onError(Throwable th) {
|
2021-12-17 22:03:14 +00:00
|
|
|
if (this.j) {
|
2022-01-27 00:50:41 +00:00
|
|
|
f.o1(th);
|
2021-06-27 20:44:35 +00:00
|
|
|
l.b(th);
|
|
|
|
return;
|
|
|
|
}
|
2021-12-17 22:03:14 +00:00
|
|
|
this.j = true;
|
2021-06-27 20:44:35 +00:00
|
|
|
try {
|
|
|
|
unsubscribe();
|
|
|
|
a aVar = new a();
|
2021-12-17 22:03:14 +00:00
|
|
|
this.n.a(aVar);
|
|
|
|
long j = this.k;
|
2021-06-27 20:44:35 +00:00
|
|
|
if (j != 0) {
|
2021-12-17 22:03:14 +00:00
|
|
|
this.m.b(j);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
2021-12-17 22:03:14 +00:00
|
|
|
((Observable) this.o.j.call(th)).i0(aVar);
|
2021-06-27 20:44:35 +00:00
|
|
|
} catch (Throwable th2) {
|
2021-12-17 22:03:14 +00:00
|
|
|
Subscriber subscriber = this.l;
|
2022-01-27 00:50:41 +00:00
|
|
|
f.o1(th2);
|
2021-06-27 20:44:35 +00:00
|
|
|
subscriber.onError(th2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-08 18:25:28 +00:00
|
|
|
@Override // j0.g
|
2021-06-27 20:44:35 +00:00
|
|
|
public void onNext(T t) {
|
2021-12-17 22:03:14 +00:00
|
|
|
if (!this.j) {
|
|
|
|
this.k++;
|
|
|
|
this.l.onNext(t);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // rx.Subscriber
|
|
|
|
public void setProducer(Producer producer) {
|
2021-12-17 22:03:14 +00:00
|
|
|
this.m.c(producer);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|