discord-jadx/app/src/main/java/c/a/q/o.java

39 lines
1.3 KiB
Java

package c.a.q;
import c.a.q.n0.a;
import com.discord.rtcconnection.RtcConnection;
import d0.z.d.m;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: RtcConnection.kt */
public final class o extends d0.z.d.o implements Function0<Unit> {
public final /* synthetic */ Boolean $isConnected;
public final /* synthetic */ p this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public o(p pVar, Boolean bool) {
super(0);
this.this$0 = pVar;
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.v;
if (aVar == null) {
RtcConnection.o(rtcConnection, "handleConnectivityChange() socket was null.", null, null, 6);
} else if (booleanValue) {
aVar.g(5000, "network detected online", true);
} else {
aVar.g(15000, "network detected offline", false);
}
return Unit.a;
}
}