discord-jadx/app/src/main/java/c/a/r/n.java
2021-06-27 22:44:35 +02:00

39 lines
1.3 KiB
Java

package c.a.r;
import c.a.r.j0.a;
import com.discord.rtcconnection.RtcConnection;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: RtcConnection.kt */
public final class n extends o implements Function0<Unit> {
public final /* synthetic */ Boolean $isConnected;
public final /* synthetic */ o this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public n(o oVar, Boolean bool) {
super(0);
this.this$0 = oVar;
this.$isConnected = bool;
}
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public Unit mo1invoke() {
RtcConnection rtcConnection = this.this$0.i;
Boolean bool = this.$isConnected;
m.checkNotNullExpressionValue(bool, "isConnected");
boolean booleanValue = bool.booleanValue();
a aVar = rtcConnection.m;
if (aVar == null) {
RtcConnection.o(rtcConnection, "handleConnectivityChange() socket was null.", null, null, 6);
} else if (booleanValue) {
aVar.h(5000, "network detected online", true);
} else {
aVar.h(15000, "network detected offline", false);
}
return Unit.a;
}
}