discord-jadx/app/src/main/java/c/i/a/f/i/b/f7.java

96 lines
3.0 KiB
Java

package c.i.a.f.i.b;
import androidx.annotation.WorkerThread;
import com.airbnb.lottie.parser.AnimatableValueParser;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.List;
import java.util.Map;
/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
@WorkerThread
public final class f7 implements Runnable {
public final URL i;
public final x4 j;
public final String k;
public final /* synthetic */ d7 l;
/* JADX WARN: Incorrect args count in method signature: (Ljava/lang/String;Ljava/net/URL;[BLjava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Lc/i/a/f/i/b/x4;)V */
public f7(d7 d7Var, String str, URL url, x4 x4Var) {
this.l = d7Var;
AnimatableValueParser.w(str);
this.i = url;
this.j = x4Var;
this.k = str;
}
public final void a(int i, Exception exc, byte[] bArr, Map<String, List<String>> map) {
this.l.f().v(new e7(this, i, exc, bArr, map));
}
/* JADX WARNING: Removed duplicated region for block: B:18:0x0031 */
/* JADX WARNING: Removed duplicated region for block: B:24:0x003d */
@Override // java.lang.Runnable
public final void run() {
IOException e;
Map<String, List<String>> map;
HttpURLConnection httpURLConnection;
Throwable th;
this.l.a();
int i = 0;
try {
httpURLConnection = this.l.s(this.i);
try {
i = httpURLConnection.getResponseCode();
map = httpURLConnection.getHeaderFields();
} catch (IOException e2) {
e = e2;
map = null;
if (httpURLConnection != null) {
}
a(i, e, null, map);
} catch (Throwable th2) {
th = th2;
map = null;
if (httpURLConnection != null) {
}
a(i, null, null, map);
throw th;
}
try {
byte[] t = d7.t(httpURLConnection);
httpURLConnection.disconnect();
a(i, null, t, map);
} catch (IOException e3) {
e = e3;
if (httpURLConnection != null) {
}
a(i, e, null, map);
} catch (Throwable th3) {
th = th3;
if (httpURLConnection != null) {
}
a(i, null, null, map);
throw th;
}
} catch (IOException e4) {
e = e4;
httpURLConnection = null;
map = null;
if (httpURLConnection != null) {
httpURLConnection.disconnect();
}
a(i, e, null, map);
} catch (Throwable th4) {
th = th4;
httpURLConnection = null;
map = null;
if (httpURLConnection != null) {
httpURLConnection.disconnect();
}
a(i, null, null, map);
throw th;
}
}
}