discord-jadx/app/src/main/java/com/discord/gateway/GatewaySocket$startHeartbea...

28 lines
1.1 KiB
Java

package com.discord.gateway;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: GatewaySocket.kt */
public final class GatewaySocket$startHeartbeater$1 extends o implements Function0<Unit> {
public final /* synthetic */ GatewaySocket this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public GatewaySocket$startHeartbeater$1(GatewaySocket gatewaySocket) {
super(0);
this.this$0 = gatewaySocket;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
if (GatewaySocket.access$getHeartbeatAck$p(this.this$0)) {
GatewaySocket.access$setHeartbeatAck$p(this.this$0, false);
GatewaySocket gatewaySocket = this.this$0;
GatewaySocket.access$heartbeat(gatewaySocket, GatewaySocket.access$getSeq$p(gatewaySocket));
} else if (!GatewaySocket.access$getHeartbeatExpeditedTimeout$p(this.this$0).getPending()) {
GatewaySocket.access$handleHeartbeatTimeout(this.this$0);
}
}
}