AsyncTimeout$Watchdog.smali
.class final Lokio/AsyncTimeout$Watchdog;
.super Ljava/lang/Thread;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokio/AsyncTimeout;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1a
name = "Watchdog"
.end annotation
# direct methods
.method public constructor <init>()V
.registers 2
const-string v0, "Okio Watchdog"
invoke-direct {p0, v0}, Ljava/lang/Thread;-><init>(Ljava/lang/String;)V
const/4 v0, 0x1
invoke-virtual {p0, v0}, Ljava/lang/Thread;->setDaemon(Z)V
return-void
.end method
# virtual methods
.method public run()V
.registers 4
:catch_0
:cond_0
:goto_0
:try_start_0
const-class v0, Lokio/AsyncTimeout;
monitor-enter v0
:try_end_3
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_3} :catch_0
:try_start_3
sget-object v1, Lokio/AsyncTimeout;->k:Lokio/AsyncTimeout$Companion;
invoke-virtual {v1}, Lokio/AsyncTimeout$Companion;->c()Lokio/AsyncTimeout;
move-result-object v1
invoke-static {}, Lokio/AsyncTimeout;->i()Lokio/AsyncTimeout;
move-result-object v2
if-ne v1, v2, :cond_15
const/4 v1, 0x0
invoke-static {v1}, Lokio/AsyncTimeout;->o(Lokio/AsyncTimeout;)V
:try_end_13
.catchall {:try_start_3 .. :try_end_13} :catchall_1e
:try_start_13
monitor-exit v0
:try_end_14
.catch Ljava/lang/InterruptedException; {:try_start_13 .. :try_end_14} :catch_0
return-void
:cond_15
:try_start_15
sget-object v2, Lkotlin/Unit;->a:Lkotlin/Unit;
:try_end_17
.catchall {:try_start_15 .. :try_end_17} :catchall_1e
:try_start_17
monitor-exit v0
if-eqz v1, :cond_0
invoke-virtual {v1}, Lokio/AsyncTimeout;->x()V
goto :goto_0
:catchall_1e
move-exception v1
monitor-exit v0
throw v1
:try_end_21
.catch Ljava/lang/InterruptedException; {:try_start_17 .. :try_end_21} :catch_0
.end method