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

52 lines
1.5 KiB
Java
Raw Normal View History

2021-08-03 07:33:18 +00:00
package g0;
import c.d.b.a.a;
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-08-28 06:29:07 +00:00
StringBuilder P = a.P("Failed to close timed out socket ");
P.append(this.m);
logger.log(level, P.toString(), (Throwable) e);
2021-08-03 07:33:18 +00:00
} catch (AssertionError e2) {
if (c.q.a.k.a.B(e2)) {
Logger logger2 = this.l;
Level level2 = Level.WARNING;
2021-08-28 06:29:07 +00:00
StringBuilder P2 = a.P("Failed to close timed out socket ");
P2.append(this.m);
logger2.log(level2, P2.toString(), (Throwable) e2);
2021-08-03 07:33:18 +00:00
return;
}
throw e2;
}
}
}