39 lines
1.3 KiB
Java
39 lines
1.3 KiB
Java
|
package c.a.r;
|
||
|
|
||
|
import c.a.r.o0.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.p(rtcConnection, "handleConnectivityChange() socket was null.", null, null, 6);
|
||
|
} else if (booleanValue) {
|
||
|
aVar.i(5000, "network detected online", true);
|
||
|
} else {
|
||
|
aVar.i(15000, "network detected offline", false);
|
||
|
}
|
||
|
return Unit.a;
|
||
|
}
|
||
|
}
|