JavaUrlRequest$12.smali

.class Laegon/chrome/net/impl/JavaUrlRequest$12;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic this$0:Laegon/chrome/net/impl/JavaUrlRequest;


# direct methods
.method constructor <init>(Laegon/chrome/net/impl/JavaUrlRequest;)V
    .registers 2

    iput-object p1, p0, Laegon/chrome/net/impl/JavaUrlRequest$12;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 4

    iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$12;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;

    # getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mOutputStreamDataSink:Laegon/chrome/net/impl/JavaUrlRequest$OutputStreamDataSink;
    invoke-static {v0}, Laegon/chrome/net/impl/JavaUrlRequest;->access$2600(Laegon/chrome/net/impl/JavaUrlRequest;)Laegon/chrome/net/impl/JavaUrlRequest$OutputStreamDataSink;

    move-result-object v0

    if-eqz v0, :cond_11

    :try_start_8
    iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$12;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;

    # getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mOutputStreamDataSink:Laegon/chrome/net/impl/JavaUrlRequest$OutputStreamDataSink;
    invoke-static {v0}, Laegon/chrome/net/impl/JavaUrlRequest;->access$2600(Laegon/chrome/net/impl/JavaUrlRequest;)Laegon/chrome/net/impl/JavaUrlRequest$OutputStreamDataSink;

    move-result-object v0

    invoke-virtual {v0}, Laegon/chrome/net/impl/JavaUrlRequest$OutputStreamDataSink;->closeOutputChannel()V
    :try_end_11
    .catch Ljava/io/IOException; {:try_start_8 .. :try_end_11} :catch_29

    :cond_11
    :goto_11
    iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$12;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;

    # getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mCurrentUrlConnection:Ljava/net/HttpURLConnection;
    invoke-static {v0}, Laegon/chrome/net/impl/JavaUrlRequest;->access$1400(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/net/HttpURLConnection;

    move-result-object v0

    if-eqz v0, :cond_28

    iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$12;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;

    # getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mCurrentUrlConnection:Ljava/net/HttpURLConnection;
    invoke-static {v0}, Laegon/chrome/net/impl/JavaUrlRequest;->access$1400(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/net/HttpURLConnection;

    move-result-object v0

    invoke-virtual {v0}, Ljava/net/HttpURLConnection;->disconnect()V

    iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$12;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;

    const/4 v1, 0x0

    # setter for: Laegon/chrome/net/impl/JavaUrlRequest;->mCurrentUrlConnection:Ljava/net/HttpURLConnection;
    invoke-static {v0, v1}, Laegon/chrome/net/impl/JavaUrlRequest;->access$1402(Laegon/chrome/net/impl/JavaUrlRequest;Ljava/net/HttpURLConnection;)Ljava/net/HttpURLConnection;

    :cond_28
    return-void

    :catch_29
    move-exception v0

    # getter for: Laegon/chrome/net/impl/JavaUrlRequest;->TAG:Ljava/lang/String;
    invoke-static {}, Laegon/chrome/net/impl/JavaUrlRequest;->access$3200()Ljava/lang/String;

    move-result-object v1

    const-string v2, "Exception when closing OutputChannel"

    invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_11
.end method