apkfuckery/com.discord/smali_classes2/l0/l/c/k.smali
2020-11-09 00:01:03 +00:00

110 lines
2.1 KiB
Smali

.class public Ll0/l/c/k;
.super Ljava/lang/Object;
.source "SleepingAction.java"
# interfaces
.implements Lrx/functions/Action0;
# instance fields
.field public final d:Lrx/functions/Action0;
.field public final e:Lrx/Scheduler$Worker;
.field public final f:J
# direct methods
.method public constructor <init>(Lrx/functions/Action0;Lrx/Scheduler$Worker;J)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Ll0/l/c/k;->d:Lrx/functions/Action0;
iput-object p2, p0, Ll0/l/c/k;->e:Lrx/Scheduler$Worker;
iput-wide p3, p0, Ll0/l/c/k;->f:J
return-void
.end method
# virtual methods
.method public call()V
.locals 6
iget-object v0, p0, Ll0/l/c/k;->e:Lrx/Scheduler$Worker;
invoke-interface {v0}, Lrx/Subscription;->isUnsubscribed()Z
move-result v0
if-eqz v0, :cond_0
return-void
:cond_0
iget-wide v0, p0, Ll0/l/c/k;->f:J
iget-object v2, p0, Ll0/l/c/k;->e:Lrx/Scheduler$Worker;
const/4 v3, 0x0
if-eqz v2, :cond_3
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
sub-long/2addr v0, v4
const-wide/16 v4, 0x0
cmp-long v2, v0, v4
if-lez v2, :cond_1
:try_start_0
invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
:try_end_0
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
invoke-static {v0}, Lc0/j/a;->G(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
throw v3
:cond_1
:goto_0
iget-object v0, p0, Ll0/l/c/k;->e:Lrx/Scheduler$Worker;
invoke-interface {v0}, Lrx/Subscription;->isUnsubscribed()Z
move-result v0
if-eqz v0, :cond_2
return-void
:cond_2
iget-object v0, p0, Ll0/l/c/k;->d:Lrx/functions/Action0;
invoke-interface {v0}, Lrx/functions/Action0;->call()V
return-void
:cond_3
throw v3
.end method