apkfuckery/com.discord/smali/com/discord/gateway/GatewaySocket$connect$3.smali

103 lines
2.8 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public final Lcom/discord/gateway/GatewaySocket$connect$3;
2020-03-27 22:23:51 +00:00
.super Ly/u/b/k;
2019-07-24 11:27:29 +00:00
.source "GatewaySocket.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function0;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/gateway/GatewaySocket;->connect(Ljava/lang/String;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x19
2019-07-24 11:27:29 +00:00
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
2020-03-27 22:23:51 +00:00
"Ly/u/b/k;",
2019-07-24 11:27:29 +00:00
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;"
}
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public final synthetic this$0:Lcom/discord/gateway/GatewaySocket;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Lcom/discord/gateway/GatewaySocket;)V
2019-07-24 11:27:29 +00:00
.locals 0
iput-object p1, p0, Lcom/discord/gateway/GatewaySocket$connect$3;->this$0:Lcom/discord/gateway/GatewaySocket;
const/4 p1, 0x0
2020-03-27 22:23:51 +00:00
invoke-direct {p0, p1}, Ly/u/b/k;-><init>(I)V
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public bridge synthetic invoke()Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
.locals 1
invoke-virtual {p0}, Lcom/discord/gateway/GatewaySocket$connect$3;->invoke()V
2019-12-06 03:29:40 +00:00
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
2019-07-24 11:27:29 +00:00
return-object v0
.end method
.method public final invoke()V
2019-12-06 03:29:40 +00:00
.locals 8
2019-07-24 11:27:29 +00:00
iget-object v0, p0, Lcom/discord/gateway/GatewaySocket$connect$3;->this$0:Lcom/discord/gateway/GatewaySocket;
2019-12-06 03:29:40 +00:00
const-string v1, "Connection timed out after "
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {v1}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v2, Lcom/discord/gateway/GatewaySocket;->Companion:Lcom/discord/gateway/GatewaySocket$Companion;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v3, p0, Lcom/discord/gateway/GatewaySocket$connect$3;->this$0:Lcom/discord/gateway/GatewaySocket;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {v3}, Lcom/discord/gateway/GatewaySocket;->access$getConnectionStartTime$p(Lcom/discord/gateway/GatewaySocket;)J
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-wide v3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v5, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v6, 0x2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v7, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-static/range {v2 .. v7}, Lcom/discord/gateway/GatewaySocket$Companion;->getDelay$default(Lcom/discord/gateway/GatewaySocket$Companion;JLjava/lang/Long;ILjava/lang/Object;)J
2019-07-24 11:27:29 +00:00
move-result-wide v2
invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string v2, "ms, did not receive hello in time."
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
const/4 v2, 0x0
invoke-static {v0, v2, v2, v1}, Lcom/discord/gateway/GatewaySocket;->access$handleClose(Lcom/discord/gateway/GatewaySocket;ZILjava/lang/String;)V
return-void
.end method