discord-jadx/app/src/main/java/g0/w.java

53 lines
1.5 KiB
Java
Raw Normal View History

2021-11-02 06:38:17 +00:00
package g0;
import c.d.b.a.a;
2021-11-05 06:48:17 +00:00
import c.i.a.f.e.o.f;
2021-11-02 06:38:17 +00:00
import d0.z.d.m;
import java.io.IOException;
import java.net.Socket;
import java.net.SocketTimeoutException;
import java.util.logging.Level;
import java.util.logging.Logger;
/* compiled from: JvmOkio.kt */
public final class w extends b {
public final Logger l = Logger.getLogger("okio.Okio");
public final Socket m;
public w(Socket socket) {
m.checkParameterIsNotNull(socket, "socket");
this.m = socket;
}
@Override // g0.b
public IOException k(IOException iOException) {
SocketTimeoutException socketTimeoutException = new SocketTimeoutException("timeout");
if (iOException != null) {
socketTimeoutException.initCause(iOException);
}
return socketTimeoutException;
}
@Override // g0.b
public void l() {
try {
this.m.close();
} catch (Exception e) {
Logger logger = this.l;
Level level = Level.WARNING;
2021-11-05 06:48:17 +00:00
StringBuilder R = a.R("Failed to close timed out socket ");
R.append(this.m);
logger.log(level, R.toString(), (Throwable) e);
2021-11-02 06:38:17 +00:00
} catch (AssertionError e2) {
2021-11-05 06:48:17 +00:00
if (f.p0(e2)) {
2021-11-02 06:38:17 +00:00
Logger logger2 = this.l;
Level level2 = Level.WARNING;
2021-11-05 06:48:17 +00:00
StringBuilder R2 = a.R("Failed to close timed out socket ");
R2.append(this.m);
logger2.log(level2, R2.toString(), (Throwable) e2);
2021-11-02 06:38:17 +00:00
return;
}
throw e2;
}
}
}