102 lines
3.3 KiB
Java
102 lines
3.3 KiB
Java
package c.f.j.p;
|
|
|
|
import c.f.j.p.a0;
|
|
import c.f.j.p.m0;
|
|
import c.f.j.p.n0;
|
|
import java.io.IOException;
|
|
import java.io.InputStream;
|
|
import java.net.HttpURLConnection;
|
|
import java.util.Objects;
|
|
/* compiled from: HttpUrlConnectionNetworkFetcher */
|
|
public class y implements Runnable {
|
|
public final /* synthetic */ a0.a i;
|
|
public final /* synthetic */ n0.a j;
|
|
public final /* synthetic */ a0 k;
|
|
|
|
public y(a0 a0Var, a0.a aVar, n0.a aVar2) {
|
|
this.k = a0Var;
|
|
this.i = aVar;
|
|
this.j = aVar2;
|
|
}
|
|
|
|
/* JADX WARNING: Removed duplicated region for block: B:20:0x0044 A[SYNTHETIC, Splitter:B:20:0x0044] */
|
|
/* JADX WARNING: Removed duplicated region for block: B:27:0x0052 A[SYNTHETIC, Splitter:B:27:0x0052] */
|
|
/* JADX WARNING: Removed duplicated region for block: B:31:0x0059 */
|
|
/* JADX WARNING: Removed duplicated region for block: B:35:? A[RETURN, SYNTHETIC] */
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
HttpURLConnection httpURLConnection;
|
|
Throwable th;
|
|
IOException e;
|
|
a0 a0Var = this.k;
|
|
a0.a aVar = this.i;
|
|
n0.a aVar2 = this.j;
|
|
Objects.requireNonNull(a0Var);
|
|
InputStream inputStream = null;
|
|
try {
|
|
httpURLConnection = a0Var.a(aVar.b.e().f2296c, 5);
|
|
try {
|
|
aVar.e = a0Var.f472c.now();
|
|
if (httpURLConnection != null) {
|
|
inputStream = httpURLConnection.getInputStream();
|
|
((m0.a) aVar2).b(inputStream, -1);
|
|
}
|
|
if (inputStream != null) {
|
|
try {
|
|
inputStream.close();
|
|
} catch (IOException unused) {
|
|
}
|
|
}
|
|
if (httpURLConnection == null) {
|
|
return;
|
|
}
|
|
} catch (IOException e2) {
|
|
e = e2;
|
|
try {
|
|
((m0.a) aVar2).a(e);
|
|
if (0 != 0) {
|
|
try {
|
|
inputStream.close();
|
|
} catch (IOException unused2) {
|
|
}
|
|
}
|
|
if (httpURLConnection == null) {
|
|
return;
|
|
}
|
|
httpURLConnection.disconnect();
|
|
} catch (Throwable th2) {
|
|
th = th2;
|
|
if (0 != 0) {
|
|
}
|
|
if (httpURLConnection != null) {
|
|
}
|
|
throw th;
|
|
}
|
|
}
|
|
} catch (IOException e3) {
|
|
e = e3;
|
|
httpURLConnection = null;
|
|
((m0.a) aVar2).a(e);
|
|
if (0 != 0) {
|
|
}
|
|
if (httpURLConnection == null) {
|
|
}
|
|
httpURLConnection.disconnect();
|
|
} catch (Throwable th3) {
|
|
th = th3;
|
|
httpURLConnection = null;
|
|
if (0 != 0) {
|
|
try {
|
|
inputStream.close();
|
|
} catch (IOException unused3) {
|
|
}
|
|
}
|
|
if (httpURLConnection != null) {
|
|
httpURLConnection.disconnect();
|
|
}
|
|
throw th;
|
|
}
|
|
httpURLConnection.disconnect();
|
|
}
|
|
}
|